Commit Graph

582 Commits (206e706d85032bdeae0df1d6418c58f8c4d2406b)

Author SHA1 Message Date
Axel Burri be6547c1bd btrbk: bugfix: fixed bug when "commit_delete" configuration option is not set 2015-03-28 15:03:43 +01:00
Axel Burri 76e512117c btrbk: show correct exit code on external command failure 2015-03-26 18:45:43 +01:00
Axel Burri 75dd565de4 btrbk: removed configuration option "receive_log" in favor of printing errors from "btrfs receive" 2015-03-26 18:45:36 +01:00
Axel Burri 28ed7d65e8 btrbk: added configuration option "btrfs_progs_compat", for compatibility with btrfs-tools v3.14. Note that the common snapshots are guessed by their filenames when "btrfs_progs_compat" is set 2015-03-26 18:45:06 +01:00
Axel Burri d17d0abff5 btrbk: bugfix (blocker): btr_fs_info(): return en empty hash if subvolume at $fs_path is empty (bug introduced in: 14e675bacd) 2015-03-20 18:02:13 +01:00
Axel Burri 9f96974a5d Changed version to 0.13 2015-03-19 17:20:21 +01:00
Axel Burri 930e2cfbf0 documentation: cosmetics 2015-03-19 13:16:58 +01:00
Axel Burri bef56e59d3 cosmetics: corrected btrbk home page url 2015-03-19 12:48:09 +01:00
Axel Burri e39263588d btrbk: bugfix: allow '@' character for subvolume names (ubuntu prefixes all subvolumes with '@' in its subvolume layout) 2015-03-19 11:46:59 +01:00
Axel Burri 523b989b02 Changed version to 0.12 2015-03-13 19:38:51 +01:00
Axel Burri 89c659081a btrbk: added ChangeLog for current version 0.12-dev 2015-03-13 18:31:18 +01:00
Axel Burri b99fb4b438 btrbk: fixed btrbk origin action. keep track of known path of subvolumes in uuid_fs_map 2015-03-13 18:14:28 +01:00
Axel Burri f304133fa2 btrbk: fixed btrbk tree action (compare received_uuid instead of path match) 2015-03-13 15:33:14 +01:00
Axel Burri ca4006589f btrbk: renamed btr_subtree() to btr_fs_info() while fixing its dependencies 2015-03-13 14:40:43 +01:00
Axel Burri 7bc0efab64 btrbk: fix "path" portion of subvolume node; cleanup (unfinished) 2015-03-13 12:33:31 +01:00
Axel Burri 7497e0b561 btrbk: new implementation of btr_subtree(), using more complete information from btr_tree(). (unfinished) 2015-03-13 11:44:04 +01:00
Axel Burri 618114e717 btrbk: btr_tree(): added REL_PATH information to subvolume node 2015-03-13 11:20:47 +01:00
Axel Burri 6e2b9a68d0 btrbk: cosmetics 2015-03-11 19:19:32 +01:00
Axel Burri 02acb32d17 btrbk: fixed bug: "Use of uninitialized value $&". The bug occurred when parsing a sub-subvolume from "btrfs subvolume list" command output 2015-03-11 19:18:54 +01:00
Axel Burri 448b70b8fd Changed version to 0.11; adapted ChangeLog 2015-03-02 11:33:14 +01:00
Axel Burri aa8d153a20 btrbk: added optional subvolume argument for run/dryrun actions, for explicit selection of subvolumes to be processed. 2015-03-01 14:28:26 +01:00
Axel Burri 372ec90685 btrbk: generic input validation of command arguments 2015-02-28 13:52:38 +01:00
Axel Burri 056f6f9120 btrbk: added option -p (preserve backups) 2015-02-28 13:46:05 +01:00
Axel Burri 02f254bdb3 btrbk: fixed getopts(): removed non-existent options 2015-02-28 11:54:11 +01:00
Axel Burri bfff868bb8 btrbk: changed version to 0.10 2015-02-10 15:57:51 +01:00
Axel Burri 0a8843db90 btrbk: bugfix: keys() and values() calls to references are experimental, fixed 2015-02-10 13:32:29 +01:00
Axel Burri e84324aee4 btrbk: renamed action "execute" to "run" 2015-02-08 13:47:31 +01:00
Axel Burri e4ac3b1dd8 btrbk: bugfix: untaint arguments of diff command; fixed parsing of find-new output 2015-02-08 13:46:03 +01:00
Axel Burri c41d165ba8 btrbk: added action "origin" 2015-02-07 15:50:46 +01:00
Axel Burri 38956cf410 btrbk: cosmetics 2015-01-26 17:23:37 +01:00
Axel Burri 93ece28ee6 btrbk: fixed scheduling (correctly calculate delta-weeks); cleanup 2015-01-25 18:05:52 +01:00
Axel Burri e76ad88d65 btrbk: print different prefix for incremental/non-incremental backups 2015-01-25 17:59:55 +01:00
Axel Burri 6a0820abae btrbk: for action "info", print "btrfs filesystem usage" instead of "btrfs filesystem df/show" 2015-01-25 13:36:07 +01:00
Axel Burri 4dd89e35e1 btrbk: warn on missing ssh identity; fixed logging 2015-01-20 21:07:28 +01:00
Axel Burri 029bac98e3 btrbk: implemented action "info", executing "btrfs filesystem show/df" 2015-01-20 19:18:38 +01:00
Axel Burri 8f81547d6f btrbk: adapted backup scheme: weekly preserves first in week, monthly preserves "last weekly in month"; cleanup 2015-01-20 16:53:35 +01:00
Axel Burri 6a00736a2b btrbk: added more information on backup summary; added documentation 2015-01-17 15:34:31 +01:00
Axel Burri 5b8d4f4c18 btrbk: check for /etc/btrbk/btrbk.conf as well as /etc/btrbk.conf 2015-01-17 13:23:01 +01:00
Axel Burri 40d64c9495 btrbk: do not clean subvolume if any target has previous errors 2015-01-17 13:23:01 +01:00
Axel Burri 6793f81d50 btrbk: added strict input checking, for security sake 2015-01-17 13:23:00 +01:00
Axel Burri 08c0e59e29 btrbk: added support for ssh sources; removed automatic creation of snapdir, as this does not work with ssh (snapshot_dir now defaults to undef) 2015-01-17 13:23:00 +01:00
Axel Burri 17266d90aa btrbk: added support for ssh targets (identity file only, no password support yet) 2015-01-17 13:22:52 +01:00
Axel Burri 92ee8b0454 btrbk: added configuration option "btrfs_commit_delete" 2015-01-13 18:41:57 +01:00
Axel Burri 5299a57c2b btrbk: print summary at end of "execute" action; added option -q (quiet) 2015-01-13 17:51:24 +01:00
Axel Burri 978948f877 btrbk: added perl -T option; added signal handler; added TODO; cleanup 2015-01-13 15:17:18 +01:00
Axel Burri 3e829f6cff btrbk: removed action "clean", moving this to productive after each action "execute" 2015-01-13 13:49:18 +01:00
Axel Burri cc5fa73cf3 btrbk: use snapshot_dir from config instead of -s option 2015-01-13 12:52:29 +01:00
Axel Burri 973cebb1c7 btrbk: rewrite of backup scheme calculation, allowing to set the day of week to be preserved weekly/monthly 2015-01-13 12:38:01 +01:00
Axel Burri c445fa7970 btrbk: adapted/fixed target "clean" for refactored configuration 2015-01-12 17:56:35 +01:00
Axel Burri 1aaa72ebfe btrbk: proper input validation of config file 2015-01-12 15:46:24 +01:00
Axel Burri a269231cf9 btrbk: adapted backup creation for refactored configuration 2015-01-12 14:04:07 +01:00
Axel Burri ef5658c1b0 btrbk: adapted subvolume creation for refactored configuration 2015-01-10 16:33:01 +01:00
Axel Burri 9908ed42f0 btrbk: adapted tree action for refactored configuration 2015-01-10 16:03:47 +01:00
Axel Burri 57f4164ff9 btrbk: adapted basic checks and vol_info creation for refactored configuration 2015-01-10 16:02:35 +01:00
Axel Burri 231203e44e btrbk: refactoring of config file semantics (allow tree-style configuration): implemented new parser 2015-01-10 16:01:47 +01:00
Axel Burri eadc6c80e2 btrbk: action "clean": clean backups as well as snapshots 2015-01-09 18:39:11 +01:00
Axel Burri 912f8ad526 btrbk: added new action "clean", deleting old backups following a keep_daily/keep_weekly scheme; removed option -t, as time format needs to be fixed for action "clean" to work 2015-01-09 18:39:11 +01:00
Axel Burri 272fb6db29 btrbk: action "diff": always diff between src/target subvolume, as this works identically for snapshots as well as for received backups; enhanced visual output 2015-01-09 18:39:11 +01:00
Axel Burri 7db7c2c485 btrbk: renamed action "info" to "tree" 2015-01-09 18:39:11 +01:00
Axel Burri f3e98ced61 btrbk: corrected checks on vol_info, globally use subvol() to get a subvolume node 2015-01-09 18:39:11 +01:00
Axel Burri 51367b0e63 btrbk: bugfix: early check for svol 2015-01-09 18:39:11 +01:00
Axel Burri 299edde0d7 btrbk: improved error handling 2015-01-09 18:39:11 +01:00
Axel Burri 8930c0a87f btrbk: cleanup 2015-01-09 18:39:11 +01:00
Axel Burri c99a69a31c btrbk: allow specification of separate parent for diff 2015-01-09 18:39:11 +01:00
Axel Burri f6c134ea1b btrbk: fixed btr_tree, use it for "diff" command 2015-01-09 18:39:11 +01:00
Axel Burri a5fec23a15 btrbk: implemented "diff" command (print snapshot diffs) 2015-01-09 18:39:11 +01:00
Axel Burri 04b595a7ce btrbk: find unique name for snapshot 2015-01-09 18:39:11 +01:00
Axel Burri 915b36f7ca btrbk: operate on single subvolume instead of whole btrfs volume; added option "-s snapdir" 2015-01-09 18:39:11 +01:00
Axel Burri 6dc72f867e btrbk: operate on single subvolume instead of whole btrfs volume; added configuration option snapdir=<dir> 2015-01-09 18:39:11 +01:00
Axel Burri e9c91b1b83 btrbk: match common parents by uuid 2015-01-09 18:39:10 +01:00
Axel Burri bf40341f29 btrbk: sort output of "info" command 2015-01-09 18:39:10 +01:00
Axel Burri b2f8dd1fd6 btrbk: bugfix when trying to access non-existent voumes 2015-01-09 18:39:10 +01:00
Axel Burri 886067663c btrbk: cleanup, cosmetics 2015-01-09 18:39:10 +01:00
Axel Burri 2552cab314 btrbk: implemented "info" command 2015-01-09 18:39:10 +01:00
Axel Burri ff504b508f btrbk: changed command line semantics, accepting commands 2015-01-09 18:39:10 +01:00
Axel Burri a5ad796aeb btrbk: create all snapshots before starting any send_receive operation; cleanup 2015-01-09 18:39:10 +01:00
Axel Burri adaabb599a btrbk: added support for changelog on send-receive 2015-01-09 18:39:10 +01:00
Axel Burri 3aa6acfc6e btrbk: cleanup; bugfix 2015-01-09 18:39:10 +01:00
Axel Burri 91146da71d btrbk: added config file support (new command line option -c; changed -d debug, -p pretend flags) 2015-01-09 18:39:10 +01:00
Axel Burri 244303ebdd btrbk: build a tree from btrfs volume (for subvolume checks) 2015-01-09 18:39:10 +01:00
Axel Burri a6017460b2 btrbk: find latest common snapshot instead of latest dest snapshot 2015-01-09 18:39:10 +01:00
Axel Burri a43b8cc6db btrbk: initial revision, working for single source and multiple targets 2015-01-09 18:38:24 +01:00