summaryrefslogtreecommitdiff
path: root/bin/byteback-backup
AgeCommit message (Collapse)Author
2016-07-27Exclude /var/lib/mysql/James Lawrie
2016-07-27Fixes the essence of #2James Lawrie
2016-07-27fixed a typoJames Carter
2015-11-09Added --delete-excluded to rsync flags, otherwise fiddling with theMatthew Bloch
/etc/byteback/excludes file between runs can stop your next backup completing.
2015-11-03Update our deletion-handling.Steve Kemp
We've switched the default from --delete-after to --delete-during. The intention being that we'll free up space during the rsync run, rather than having to wait until all data has transferred, hoping it will fit before deletion.
2015-08-13Run-parts against our pre-backup directory.Steve Kemp
If the /etc/byteback/pre-backup.d/ directory is present then execute the contents.
2015-08-13Specify the timeout period as an integer, not a string.Steve Kemp
This is required as we're essentially passing the value to the command-line, via fork()+exec().
2015-08-13Run all scripts in the post-completion directory.Steve Kemp
If the directory /etc/byteback/post-backup.d/ exists then run all scripts in it, once we've completed our run.
2015-08-13Reorder source-code.Steve Kemp
Moved the functions to the top of the script, wrap the body of the program in a test to ensure we're being invoked.
2015-08-11Drop the I/O timeout down to three hours.Steve Kemp
At the moment we kill the rsync if there is no I/O for the given period (6 hours previously, 3 after this commit lands) and then retry the rsync connection up to three times. This meant that a backup could take no more than 3x6 = 18 hours but that was too long. Now we'll be 3x2 = 6 hours and that should be sufficient that transient failures are handled, but never-gonna-complete cases fail in a timely fashion.
2015-08-11Enable (ssh) compression.Steve Kemp
This is useful to speed up backups, because otherwise they will be I/O-bound and the CPU-overhead is a net-win.
2015-08-11Allow I/O timeout to be specified.Steve Kemp
Rather than having a hard-wired value we now allow this to be specified on the command-line: --io-timeout=7200 Or in a file: /etc/byteback/io_timeout
2015-07-01Change rsync timeout from 12 to 6 hours.Steve Kemp
2015-06-03ResyncSteve Kemp
2015-06-03Relocated the binaries to bin/Steve Kemp