A script for creating local and network backups on a Linux server
- Easy to install
- Easy to use
- Create backups
- Restore backups
- Rotate backups
- Delete backups
- Statistics
- Compression
- Encryption
- E-mail notifications
I am writing this script for my Debian Linux servers.
The goal is to install the script on one centralized server. This backup-server fetches the data from a list of clients and stores a copy of these data as a backup. I want to use rsync for the transmission. I think that FTP is also great, but it's only useful, if the client connects to a backup-server and upload it's files. But FTP has no encryption, what means that this solution is only acceptable in a private network.
Additional the script should be able to run in Local-mode, without copying data over the network. In this mode, it simply copies files from one directory or disk to another target, like a seperate local harddrive.
The script will be called via cronjob automatically.
At first, I want to provide a little collection of script.
Script | Desire | Description |
---|---|---|
backup-local.sh | local system | A simple program to backup and restore given directories on a local machine |
webserver-backup.sh | local system | A script to create a local backup of a webserver and the database |