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

Backup database and logs on VPS running Ubuntu

Notifications You must be signed in to change notification settings

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=me@email.com (email file split into 15mb parts)

  • ./file_backup.sh /var/log/error.log --disable-compression --email=me@email.com (email log as text file)

  • ./log-rot -dir "/var/log" -ex ".log" --delete --email=me@email.com (email and delete rotated logs like error.log.1)

  • ./database_backup.sh /credentials.conf --email=me@email.com (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