This project aims to solve simple problem : backup rotating.
Simple using scenario :
- For new backup you create directory in pickup dir
- New backup is being made in that directory. Multiple files are allowed
- Checksums are filled ( option -f )
- Backup i locally rotated to backup dirs
- Backups are transferred to remote host pickup dir (use rsync, scp or other)
- Checksums are calculated, only verified backups are being processed option -w)
- Backups are rotated on remote host
New directories consisting of backups should be put into backups/pickup dir. Directory name should be formatted as ISO8601 time. This will be used as backup creation time during processing.
In conifg.php you can configure many storing dirs. Directories from the pickup dir will be linked to the storing dirs according to storing-dir configuration.
- rotate - rotation algorithm
- rotate_opts - rotation algorithm configuration options ( depending on the algorithm )
- clean - cleaning algorithm
- clean_opts - cleaning algorithm configuration (depending on the algorithm)
- copier - Copier algorithm name
- copier_opts - Copier algorithm configuration
- 'Y' yearly
- 'Ym' monthly
- 'YW' Weekly
- 'Ymd' daily
- 'YmdH' Hourly
- Signing / checking signatures on Checksums file ( GPG - signatures)
- Running backup checks after pickup
- Scheduling additional checks after some time
Examples :
- 'Y' yearly
- 'Ym' monthly
- 'YW' Weekly
- 'Ymd' daily
- 'YmdH' Hourly
Throws out all the backups over the count value. It throws oldest backups. _IMPORTANT_ If you have duplicates in group rotating (many backups in the same group) it can rotate oldest backups and throw them out.
This algorithm just copies all of the file sto new destination
This algorithm makes hard link for each file from the original directory to the new one.
This algorithm lets encrypt backupdir while cloning. It encrypts each file one-by-one Supported options: - directOpen - Tre if file opening should be done direct from the gpg tool - enc_key - ID of the key to use while encrypting
- Signing / checking signatures on Checksums file ( GPG - signatures)
- Running backup checks after pickup
- Scheduling additional checks after some time