# ============================================================== # --- # Parameter Settings for Script 'restore-website-from-backup.sh' # --- # ============================================================== # - BACKUP_BASE_DIR # - # - Base Directory which holds all server backups # - # - Defaults to # - BACKUP_BASE_DIR="/backup" # - #BACKUP_BASE_DIR="/backup" # - MYSQL_CREDENTIALS # - # - Giving password on command line is insecure an sind mysql 5.5 # - you will get a warning doing so. # - # - Reading username/password fro file ist also possible, using MySQL/MariaDB # - commandline parameter '--defaults-file'. # - # - Since Version 5.6, that method is considered as insecure. # - To avoid giving the password on command line, we use an # - encrypted option file # - # - Create (encrypted) option file: # - $ mysql_config_editor set --login-path=local --socket=/var/run/mysqld/mysqld.sock --user=backup --password # - $ Password: # - # - Use of option file: # - $ mysql --login-path=local ... # - # - Example # - MYSQL_CREDENTIALS="--login-path=local" # - MYSQL_CREDENTIALS="--defaults-file=/etc/mysql/debian.cnf" (Debian default) # - MYSQL_CREDENTIALS="--defaults-file=/usr/local/mysql/sys-maint.cnf" # - # - # MariaDB 10.4.x # - MYSQL_CREDENTIALS="-u root -S /tmp/mysql.sock" # - # - Defaults to # - MYSQL_CREDENTIALS="--defaults-file=/usr/local/mysql/sys-maint.cnf" # - #MYSQL_CREDENTIALS="--defaults-file=/usr/local/mysql/sys-maint.cnf" # - HTTP_USERA - local Webservers user # - # - If ommitted, script tries to determine the user under which user the webserver # - is running. If that fails, parameter defaults to 'www-data' # - #HTTP_USER="www-data" # - HTTP_GROUP - local Webservers group # - # - If ommitted, script tries to determine the user under which group the webserver # - is running. If that fails, parameter defaults to 'www-data' # - #HTTP_GROUP="www-data" # - PHP_ENGINE - PHP engine # - # - Possible values: 'FPM' 'FCGI' 'MOD-PHP' # - # - Defaults to 'FPM' # - #PHP_ENGINE="FPM" # - LOCAL_WEBSITE_BASE_DIR # - # - Defaults to: # - LOCAL_WEBSITE_BASE_DIR="/var/www" # - #LOCAL_WEBSITE_BASE_DIR="/var/www"