summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-02Updated Byteback::Restore#find to sort files in chronological orderPatrick J Cherry
Also only the latest copy is returned by default, unless :verbose or :all are set in the options, in which case all the copies, or just the unique copies are returned.
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-02Fixed UK spelling of licence.Patrick J Cherry
Oops.
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-02Added missing "time" dependency to restore_file.rbPatrick J Cherry
This is required for Time#parse
2015-12-02Fixed up tests to work.Patrick J Cherry
I'd changed some of the arguments to the functions, and not updated the tests. So much for TDD..!
2015-12-02Updated copyrightPatrick J Cherry
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-17Updated changelogPatrick J Cherry
2015-11-17Fix typo (undefined variable) in byteback-pushJames Hannah
2015-11-13Updated changelogPatrick J Cherry
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-03New releaseSteve Kemp
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-18new releaseSteve Kemp
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-13Abort cleanly if we cannot acquire our lockfile.Steve Kemp
This avoids a backtrace, and shows a clean reason for failure.
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-11Simplified logging-logic.Steve Kemp
We don't use the environmental variable, which was never documented, instead we either: * Log to the console when running interactively. * Log to syslog otherwise.
2015-08-11Updated formatting - just for neatness.Steve Kemp
2015-08-11Updated the fatal-error handling.Steve Kemp
Now we use the utility classes we have to log errors to syslog.
2015-08-05Added a simple utility for future-reference.Steve Kemp
This takes each snapshot on-disk, and uses an intermediary snapshot, to essentially change the ownership of all snapshots from `root` to `byteback`.
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-03We have a restore-script now.Steve Kemp
2015-06-03This is not executable.Steve Kemp
2015-06-03Install binaries from beneath bin/Steve Kemp
This simplifies the installation script significantly.
2015-06-03Relocated the binaries to bin/Steve Kemp
2015-06-03ReformattedSteve Kemp
2015-06-03Reformatted the code to lose literal TABs, etc.Steve Kemp
2015-06-03Removed +x permission.Steve Kemp
2015-06-03Added trailing newline.Steve Kemp
2015-06-03Reformatted.Steve Kemp
This involved fixing the literal TAB characters, changing the quotes, and similar non-functional edits.
2015-06-03Reformatted.Steve Kemp
This involved reformatting the code to remove TAB characters, changing " -> ', & etc.
2015-06-03Updated documentation on restoration.Steve Kemp