-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackup_help.txt
More file actions
executable file
·20 lines (15 loc) · 2.43 KB
/
backup_help.txt
File metadata and controls
executable file
·20 lines (15 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
The Simple-Backup-Script is written in perl and was created by me around 2002. I used it quite a lot in the last year and maybe it is as useful for you as it is for me.
This simple backup script aims to backup the configured directories into tar gz archives. The list of functionality includes the following:
- Backup of multiple configured directories into individual archives.
- Date stamped archive name with year, month, day and hour. This allows hourly backups.
- Backups organised in monthly folders.
- Incremental backups to save disc space where the initial backup is a full backup.
- Automatic full backups every 10. and 20. and 30. of the month to be able to cleanup incremental backups.
- Automatic deletion of incremental backups between the last full backup and the full backup before.
- Execution of scripts before the backup procedure with stop parameter and afterwards with start. This can be handy to stop services before backup if necessary.
- Excluding files from the backup using regular expression.
- Email notification after backup. This can be configured to be sent always or only on error.
- Individual log-files for each backup run.
- Subroutine for the config-file to add configuration for individual archives from each user's home directory
This simple backup script is configured with a configuration file currently located in the same directory as the script itself. The configuration file contains anumber of configuration items which are documented directly in the configuration file. You can configure a list of directories to backup. When the backup script is running it will check the files in this directory and create a md5 checksum of each file. The checksum of every file is compared to the checksum from the last backup run. If it is different, the file will be marked for backup. At the end of the compare process the list with the new md5 sums as well as a list of files to backup is written and archived together with the files itself.
The configuration allows you to define if you want to create incremental backups or not as well as the possibility to create a full backup every 10. 20 and 30. of the month. If you define it, the backup script can delete incremental backups. Deleting of the backups works like that. If the script runs on the 30., the incremental backups from the 11. to the 19 are deleted. That procedure allows you to always having the full backups and at least the last 10 days of incremental backups.