mgsautils.git
8 years agobackup.sh: Clean up junk if tar creation fails
MegaBrutal [Thu, 20 Aug 2015 05:31:48 +0000 (07:31 +0200)]
backup.sh: Clean up junk if tar creation fails

If the file system gets full during tar creation, and the junk files (SQL dumps, partial TAR) stay there, the file system is left with 100% usage.
This may have very unpleasant consequences, so it's best to simply remove those files.

modified:   mysql/backup.sh

8 years agomysqlbak_check.sh: Truncate file list and show summary
MegaBrutal [Sat, 15 Aug 2015 02:52:28 +0000 (04:52 +0200)]
mysqlbak_check.sh: Truncate file list and show summary

Changed MySQL backup check script to truncate file lists (only show 20 files of the most recent and the oldest backups) and show statistics (file number and summarized
size) at the end of each directory listing.

modified:   mysqlbak_check.sh

8 years ago Initial commit
MegaBrutal [Tue, 4 Aug 2015 02:23:54 +0000 (04:23 +0200)]
 Initial commit

 Changes to be committed:
new file:   fs/backup_check.sh
new file:   fs/backup_check_FreeBSD.sh
new file:   fs/backup_diff.sh
new file:   fs/backup_full.sh
new file:   fs/snapshot-rootfs.sh
new file:   host/check-fs-usage.sh
new file:   host/vmhost-status.sh
new file:   mysql/backup.sh
new file:   mysql/mysqlbak_check.sh
new file:   smf/check_smf_pending_users.sh
new file:   smf/mail_user_profile.sh
new file:   smf/smf_fetch_user_profile.sh