Backups


 * see Backup

This is what my current VirtualBox backup script looks like: PWD=`cat /home/bitnami/backups/pwd.cfg` DATETIME=`date +%Y-%m-%d-%H-%M-%S` mkdir -p /home/bitnami/tmp/ mkdir -p /home/bitnami/tmp/backup1/ mkdir -p /home/bitnami/tmp/backup2/ mkdir -p /home/bitnami/tmp/backup3/ rm /home/bitnami/tmp/backup3/* mv /home/bitnami/tmp/backup2/Robert-s-wiki-* /home/bitnami/tmp/backup3/ mv /home/bitnami/tmp/backup1/Robert-s-wiki-* /home/bitnami/tmp/backup2/ mv /home/bitnami/backups/Robert-s-wiki-* /home/bitnami/tmp/backup1/ mysqldump -u root -p$PWD bitnami_mediawiki > /home/bitnami/backups/Robert-s-wiki-$DATETIME.sql cp /home/bitnami/apps/mediawiki/htdocs/resources/assets/wiki.png /home/bitnami/backups/wiki.png cp /opt/bitnami/apps/mediawiki/htdocs/LocalSettings.php /home/bitnami/backups/LocalSettings.php cp /home/bitnami/mw-backup.sh /home/bitnami/backups/mw-backup.sh cp /opt/bitnami/mysql/my.cnf /home/bitnami/backups/my.cnf echo files in the backups folder: ls -l /home/bitnami/backups/ echo current backup: ls -l /home/bitnami/backups/Robert-s-wiki-$DATETIME.sql
 * 1) !/bin/bash
 * 1) echo x$PWD x
 * 1) cp /home/bitnami/backups/Robert-s-wiki-* /home/bitnami/tmp/backup1/
 * 2) rm /home/bitnami/backups/Robert-s-wiki-*