Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Latest commit

 

History

History
20 lines (11 loc) · 852 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 852 Bytes

LinuxBackup

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 like error.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)