is to create a backup of all LAMP server configuration files, shell scripts, web files, and MySQL databases as part of my Disaster Recovery Plan.
-
/etc/apache2/apache2.confto/web/backups/etc-apache2/apache2.conf -
/etc/apache2/sites-available/to/web/backups/etc-apache2/sites-available/ -
/etc/apache2/sites-enabled/to/web/backups/etc-apache2/sites-enabled/ -
/etc/php/7.0/apache2/php.inito/web/backups/etc-php-7.0-apache2/php.ini -
/web/webroot/to/web/backups/webroot -
/web/scripts/to/web/backups/scripts -
/web/backup/mysqlto/web/backups/mysql
- rsyncs
/web/backupsto anexternal hard drive
To generate the MySQL database backups at /web/backup/mysql, this script also runs the newmysqlbackup.sh found at:
https://blog.sleeplessbeastie.eu/2012/11/22/simple-shell-script-to-backup-mysql-databases/
- file structure created with
installwebserver.sh) shell script. - external backup device is attached to the computer
Directory structure (created by running installwebserver.sh):
/web//web/backups//web/scripts//web/webroot/
- none
sh filesystembackup.sh- there are no parameters
- would like this to compress and upload to online storage service as well
- backup npm/node/<other(s)> configurations(?)