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

huntfx/vps-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Backup database and logs on VPS running Ubuntu

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages