summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2017-01-31Fix name of required libfix-bad-mergePatrick J Cherry
2017-01-31Merge branch '12-fix-btrfs-path' into 'master' Chris Elsworth
"byteback-server fails to work with backported btrfs-{tools progs}" Closes #12 See merge request !4
2017-01-31Update util.rbPatrick J Cherry
2017-01-31Make sure that we accept any old snapshot name when restoring.Patrick J Cherry
Also expand the tests to check that the correct ownership etc is being returned.
2016-11-09Raise ENOENT if btrfs cannot be foundPatrick 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-05-11Avoid chaining over a newlineJamie Nguyen
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-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-02Added missing "time" dependency to restore_file.rbPatrick J Cherry
This is required for Time#parse
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-08-13Abort cleanly if we cannot acquire our lockfile.Steve Kemp
This avoids a backtrace, and shows a clean reason for failure.
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-06-03This is not executable.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-03Ensure that we don't use null variables.Steve Kemp
If we're sorting an empty array then return that empty array and save the pain of working with undefined time.attributes, & etc.
2015-01-29Dial back fatal logging from CRIT to ERRPatrick J Cherry
2014-12-09Reworked sorting of backups by importance. Added "tests"Patrick J Cherry
2014-12-05Re-jigged least-relevant backup selection. ALSO PARSE FILE PATHS AS TIMES ↵Patrick J Cherry
CORRECTLY
2014-12-04Replaced pathless btrfs invocation with /sbin/btrfs (as we're no longer root).Matthew Bloch
2014-11-24Finished 6c945d3a9399639bfa9119c26d7dab6238f15543 properly (/var/run -> ↵Matthew Bloch
/var/lock).
2014-11-22Use /var/lock instead of /var/runMatthew Bloch
2014-11-20Added extra attributes to DiskFreeHistory (needed by byteback-prune).Matthew Bloch
2014-11-20Tweaked default backup retention.Matthew Bloch
2014-11-07Tested fix to snapshot path :)Matthew Bloch
2014-11-06Corrected snapshot path for new backups (was missing hostname).Matthew Bloch
2014-11-06Fixed and tested Syslog logging.Matthew Bloch
2014-11-06Fixed typo in Syslog invocation.Matthew Bloch
2014-11-05Usability and bug fixes for byteback-prune, including --prune-force flag.Matthew Bloch
2014-11-05Fixed a couple of silly typos.Matthew Bloch
2014-11-05Split out -prune from -snapshot, tested the latter on various live setups.Matthew Bloch
2014-10-31Removed executable bit from library files.Patrick J Cherry
2014-10-31Refactored to improve logging and reduce cut & paste code, bumped Debian ↵Matthew Bloch
version number.