Corsinvest / cv4pve-autosnap

Automatic snapshot tool for Proxmox VE
https://www.corsinvest.it/cv4pve
GNU General Public License v3.0
413 stars 51 forks source link

Obsolete defaults-extra-file #74

Closed printplaatreparatie closed 1 year ago

printplaatreparatie commented 1 year ago

I'm looking into using autosnap, and found a deprecation note while researching the advice for snapshot consistency in /etc/mysql/debian.cnf:

# THIS FILE IS OBSOLETE. STOP USING IT IF POSSIBLE.
# This file exists only for backwards compatibility for
# tools that run '--defaults-file=/etc/mysql/debian.cnf'
# and have root level access to the local filesystem.
# With those permissions one can run 'mariadb' directly
# anyway thanks to unix socket authentication and hence
# this file is useless. See package README for more info.
[client]
host     = localhost
user     = root
[mysql_upgrade]
host     = localhost
user     = root
# THIS FILE WILL BE REMOVED IN A FUTURE DEBIAN RELEASE.

Wouldn't it be better to use MYSQL_OPTS="-uroot" #"-prootpassword" ?

printplaatreparatie commented 1 year ago

I changed the link to the file to this, which works for me:

MYSQL_OPTS="-uroot"
MYSQL_PWD="mypassword"