Backup the database and logs on Linux. Only tested on a VPS running Ubuntu
Example Usage:
-
./file_backup.sh /path/to/file --split-size=15m [email protected]
(email file split into 15mb parts) -
./file_backup.sh /var/log/error.log --disable-compression [email protected]
(email log as text file) -
./log-rot -dir "/var/log" -ex ".log" --delete [email protected]
(email and delete rotated logs likeerror.log.1
) -
./database_backup.sh /credentials.conf [email protected]
(generate sql dump - planned)
How it works:
The file will be copied into a temporary folder, where it may or may not be compressed and split depending on the options. Currently only email is supported, but other technologies such as Amazon S3 or Dropbox could easily be implemented.
Requirements:
- mutt (for email)