Mysqldump ghost_prod | gzip > $WORKING_DIR2/ghost_ĭuplicity -full-if-older-than 1D -no-encryption $WORKING_DIR -full-if-older-than 1D -no-encryption $WORKING_DIR2 cleanupĭuplicity remove-older-than 2D -force -no-encryption remove-older-than 2D -force -no-encryption I just added those two scripts to run as a cron job, hourly. WORKING_DIR2=/home/ghostsvc/ghostmysqlbackup Screen -r mc -X stuff "/say Backup finished.$(printf '\r')" # Ghost Blog backup script # duplicity verify -no-encryption ~/minecraftĭuplicity remove-older-than 2D -force -no-encryption -r mc -X stuff "/save-on$(printf '\r')" Screen -r mc -X stuff "/save-all$(printf '\r')"ĭuplicity -full-if-older-than 1D -no-encryption /home/mc/minecraft verify Screen -r mc -X stuff "/save-off$(printf '\r')" Screen -r mc -X stuff "/say Backup starting.$(printf '\r')" Here's what I came up with: # Minecraft backup script ![]() ![]() I implemented the backup solution described in David Keen's article on my minecraft server as well as on my blog. Duplicity - see - is a backup tool for backing up a directory to any of a number of destinations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |