summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2017-01-31First pass with rubocoprubocopPatrick J Cherry
2016-11-09Merge branch 'master' into 12-fix-btrfs-pathPatrick J Cherry
2016-11-09First pass at fixing btrfs pathPatrick J Cherry
This replaces the call to /sbin/btrfs with a method to find a btrfs program, which raises ENOENT if one cannot be found.
2016-07-27Exclude /var/lib/mysql/James Lawrie
2016-07-27Fixes the essence of #2James Lawrie
2016-07-27fixed a typoJames Carter
2016-05-11Prevent accumulator from being set to NilJamie Nguyen
2015-12-18Added "." to the rsync restore commandPatrick J Cherry
This prevents ALL TEH BACKUPS being copied back to the host.
2015-12-03Correct the encoding-defintion.Steve Kemp
2015-12-02Added "all" flag to restore_files in byteback-restorePatrick J Cherry
Also updated the signatures of list_files and restore_files to match.
2015-12-02Tidied up byteback-restore options.Patrick J Cherry
* Reinstated --list (although this is a no-op really) * Changed --list-all to -all * Checks to made to make sure only --restore or --list is given *
2015-12-02Tidied up trollop options.Patrick J Cherry
Including checking that only one of --complete, --ping, or --list are called.
2015-12-02Catch situations where no files are matched during restore.Patrick J Cherry
2015-12-02Exclude "." from the rsync so the pwd doesn't get its permissions changed..Patrick J Cherry
Otheriwse you end up with your current directory owned by byteback:byteback (or whoever owns the byteback_root).
2015-12-02Updated argument parsing in the restore functionality of receivePatrick J Cherry
* Verbose is now caught properly * --all is caught and removed
2015-12-02Added the ability to use the same rsync_flags as byteback-backupPatrick J Cherry
This allows the user to specify --xattrs --acl --hard-links etc.
2015-12-02Changed the word "revision" to "snapshot" everywherePatrick J Cherry
This is for consistency and understanding. We use btrfs snapshots, so this makes sense. To me at least.
2015-12-02Catch out-dated clients by looking for the old "restore" commandPatrick J Cherry
Hopefully this will prompt people to update.
2015-12-01Completely re-vamped restore command. Fixes #12403Patrick J Cherry
The byteback-restore command now uses the rsync xattrs to display information about the files due to be restored. It can handle filenames with spaces (!) and other characters.
2015-11-17Fix typo (undefined variable) in byteback-pushJames Hannah
2015-11-13Do not prune unless there is at least one backup that is a week old.Patrick J Cherry
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-08-11Updated the fatal-error handling.Steve Kemp
Now we use the utility classes we have to log errors to syslog.
2015-07-01Change rsync timeout from 12 to 6 hours.Steve Kemp
2015-06-03ResyncSteve Kemp
2015-06-03Resync.Steve Kemp
2015-06-03ResyncSteve Kemp
2015-06-03Minor update.Steve Kemp
2015-06-03Relocated the binaries to bin/Steve Kemp