2016-04-24 15:59:17 +02:00
|
|
|
btrbk-current
|
|
|
|
|
|
|
|
* Bugfix: set correct parent section when propagating targets
|
|
|
|
(close: #85).
|
btrbk: add transaction logging to syslog
Add configuration option transaction_syslog, which can be set to a short
name of a syslog facility, like user or local5. Most of the ones besides
localX do not really make sense, but whatever, let the user decide.
The only logging that is relevant for logging to syslog is the logging
generated inside sub action, so it's easy to hijack all messages in
there and also send them to syslog if needed.
All output is done via print_formatted, which expects a file handle.
So, abuse a file handle to a string to be able to change as less code as
needed for this feature.
Since syslog already adds the timestamps for us, I added a syslog
formatting pattern, which is very similar to tlog, omitting the
timestap.
2016-04-22 23:11:00 +02:00
|
|
|
* Add syslog output for transaction log.
|
2016-04-24 15:59:17 +02:00
|
|
|
|
2016-04-23 15:06:57 +02:00
|
|
|
btrbk-0.23.0
|
2016-03-16 13:25:19 +01:00
|
|
|
|
2016-04-13 19:56:35 +02:00
|
|
|
* INCOMPATIBLE CONFIGURATION:
|
2016-04-15 01:22:19 +02:00
|
|
|
* Please read "doc/upgrade_to_v0.23.0.md" for details on updating
|
|
|
|
the configuration file (/etc/btrbk/btrbk.conf).
|
|
|
|
* Dropped "btrfs_progs_compat" option. Need btrfs-progs >= v3.18.
|
|
|
|
* Removed "resume_missing" configuration option.
|
2016-04-13 19:56:35 +02:00
|
|
|
* Create backups only if needed to satisfy retention policy.
|
|
|
|
* Preserve FIRST backup of hour/day/week/month instead of LAST.
|
|
|
|
* Replaced "{snapshot,target}_preserve_{daily,weekly,monthly}"
|
|
|
|
configuration options with "{snapshot,target}_preserve_min" and
|
|
|
|
"{snapshot,target}_preserve NNh NNd NNw NNm NNy" options.
|
|
|
|
* Added hourly/yearly retention policies (close: #36, #69).
|
2016-04-07 15:53:50 +02:00
|
|
|
* Allow regular directories for send-receive targets (close: #77).
|
2016-03-16 13:25:19 +01:00
|
|
|
* Allow wildcards in subvolume section (close: #71).
|
2016-03-31 13:53:00 +02:00
|
|
|
* Propagate targets defined in "volume" or "root" context to all
|
2016-04-07 15:53:50 +02:00
|
|
|
"subvolume" sections (close: #78).
|
2016-04-16 17:13:19 +02:00
|
|
|
* Added "archive" command (close: #79).
|
2016-04-15 22:00:10 +02:00
|
|
|
* Changed output format of "origin" command, add table formats.
|
2016-03-23 11:58:23 +01:00
|
|
|
* Added configuration option "rate_limit" (close: #72).
|
2016-04-21 13:27:54 +02:00
|
|
|
* Added new timestamp_format "long-iso", having a timezone postfix.
|
2016-04-13 19:56:35 +02:00
|
|
|
* Added "--print-schedule" command line option.
|
2016-03-22 19:05:12 +01:00
|
|
|
* Detect interrupted transfers of raw targets (close: #75).
|
2016-04-07 15:53:50 +02:00
|
|
|
* Always read "readonly" flag (additional call to btrfs-progs).
|
|
|
|
* Warn on receive targets at unexpected location (instead of abort).
|
|
|
|
* On incremental send/receive, use all snapshots sharing same
|
|
|
|
parent_uuid as candidates for "-p <parent>" instead of only older
|
|
|
|
snapshots. As last resort, use subvolumes in snapshot_dir matching
|
|
|
|
btrbk file name scheme as candidates (which allows incremental
|
|
|
|
backups after the parent vanished, e.g. after backup restore).
|
2016-04-20 22:45:11 +02:00
|
|
|
* Use perl built-in Time::Local instead of Date::Calc.
|
2016-03-16 17:24:19 +01:00
|
|
|
* Improvements of internal data structures.
|
2016-03-16 13:25:19 +01:00
|
|
|
|
2016-02-02 11:26:09 +01:00
|
|
|
btrbk-0.22.2
|
2016-02-01 17:05:12 +01:00
|
|
|
|
|
|
|
* Bugfix: fix checks on "btrfs sub show" output, which resulted in
|
|
|
|
breakage on btrfs-progs < 4.1 (close: #68).
|
|
|
|
|
2016-01-20 18:47:29 +01:00
|
|
|
btrbk-0.22.1
|
2016-01-20 17:53:36 +01:00
|
|
|
|
|
|
|
* Support for btrfs-progs v4.4 (close: #66).
|
|
|
|
|
2016-01-19 18:40:14 +01:00
|
|
|
btrbk-0.22.0
|
2015-12-14 21:22:57 +01:00
|
|
|
|
2015-12-17 19:00:45 +01:00
|
|
|
* Bugfix: fix monthly schedule if older than 10 weeks (close: #59).
|
2015-12-14 21:22:57 +01:00
|
|
|
* Bugfix: fix sprintf used by config option "timestamp_format long"
|
2015-12-17 19:00:45 +01:00
|
|
|
when using perl-5.22.0 (close: #57).
|
2016-01-19 17:52:27 +01:00
|
|
|
* Bugfix: fix "--progress" option (close: #64).
|
2016-01-14 15:52:33 +01:00
|
|
|
* Added "clean" command (close: #61).
|
2016-01-14 15:53:52 +01:00
|
|
|
* Added "-n, --dry-run" option.
|
2016-01-14 18:02:53 +01:00
|
|
|
* Added configuration options "raw_target_compress_level",
|
|
|
|
"raw_target_compress_threads" (close: #60).
|
2016-01-15 02:06:03 +01:00
|
|
|
* Added "stats" command (close: #54).
|
2016-01-17 19:44:59 +01:00
|
|
|
* Print "$hostname:$path" instead of "{$hostname}$path" in summary
|
|
|
|
and logs.
|
2015-12-14 21:22:57 +01:00
|
|
|
|
2015-10-25 12:29:52 +01:00
|
|
|
btrbk-0.21.0
|
2015-09-20 17:50:12 +02:00
|
|
|
|
2015-10-22 17:45:27 +02:00
|
|
|
* Added transaction log (configuration option "transaction_log").
|
2015-09-20 17:50:12 +02:00
|
|
|
* Added configuration option "group".
|
2015-10-22 17:45:27 +02:00
|
|
|
* Allow filtering of all commands by group as well as targets.
|
|
|
|
* Added "list backups|snapshots|latest|config|source|volume|target"
|
|
|
|
commands (while removing "tree" command).
|
2015-10-11 15:38:43 +02:00
|
|
|
* Added "config print" command.
|
2015-10-12 20:46:05 +02:00
|
|
|
* Added "--format=table|long|raw" and "-t,--table" command line
|
2015-10-12 17:13:23 +02:00
|
|
|
options, producing tabular and raw (machine-readable) output for
|
|
|
|
"(dry)run", "tree" and "list" commands.
|
2015-10-12 20:46:05 +02:00
|
|
|
* Print scheduler details if -v option is set on action run/dryrun.
|
2015-09-20 18:32:19 +02:00
|
|
|
* Added configuration option "ssh_cipher_spec" (close: #47).
|
2015-06-02 22:16:33 +02:00
|
|
|
* Added "target raw", with GnuPG and compression support
|
|
|
|
(experimental).
|
2015-09-29 14:07:58 +02:00
|
|
|
* Added configuration option "timestamp_format short|long".
|
2015-10-19 22:10:08 +02:00
|
|
|
* Replaced "info" command with "usage", with tabular output.
|
2015-09-26 19:51:38 +02:00
|
|
|
* Bugfix: correctly handle "incremental no" option.
|
2015-09-30 14:00:39 +02:00
|
|
|
* Bugfix: return exit status 10 instead of 0 if one or more backup
|
|
|
|
tasks aborted.
|
2015-10-20 22:05:02 +02:00
|
|
|
* Better error handling for send/receive commands (close: #33).
|
2015-09-20 17:50:12 +02:00
|
|
|
* Hardened ssh_filter_btrbk.sh script: fine-grained access control,
|
2015-09-26 19:51:38 +02:00
|
|
|
restrict-path option, sudo option (close: #45).
|
2015-10-23 21:15:49 +02:00
|
|
|
* Added example cron script.
|
2015-09-20 17:50:12 +02:00
|
|
|
|
2015-09-02 12:27:13 +02:00
|
|
|
btrbk-0.20.0
|
2015-08-13 21:39:07 +02:00
|
|
|
|
|
|
|
* Added configuration option "ssh_port" (close: #39).
|
2015-09-01 00:43:14 +02:00
|
|
|
* Added configuration option "ssh_compression" (close: #44).
|
2015-08-15 18:23:48 +02:00
|
|
|
* Added command line option "--progress" (close: #42).
|
2015-09-02 11:48:32 +02:00
|
|
|
* Bugfix: correct handling of empty "snapshot_dir" (close: #43).
|
2015-09-02 12:27:13 +02:00
|
|
|
* Accept long options on command line.
|
|
|
|
* Documentation: added FAQ.
|
2015-08-13 21:39:07 +02:00
|
|
|
|
2015-06-21 15:37:04 +02:00
|
|
|
btrbk-0.19.3
|
2015-06-10 13:10:45 +02:00
|
|
|
|
|
|
|
* Bugfix: fix sorting of dates in schedule().
|
2015-07-08 18:24:55 +02:00
|
|
|
* Bugfix: correct parsing of btrfs subvolume list (close: #28).
|
2015-06-21 15:37:04 +02:00
|
|
|
* Support for btrfs-progs v4.1-rc1.
|
2015-06-10 13:10:45 +02:00
|
|
|
|
2015-06-07 12:33:27 +02:00
|
|
|
btrbk-0.19.2
|
2015-06-07 11:52:39 +02:00
|
|
|
|
2015-07-08 18:24:55 +02:00
|
|
|
* Bugfix: fix crash when using btrfs-progs < 3.17.3 (close: #24).
|
2015-06-07 11:52:39 +02:00
|
|
|
|
2015-06-01 12:48:31 +02:00
|
|
|
btrbk-0.19.1
|
2015-05-28 14:39:12 +02:00
|
|
|
|
|
|
|
* Use "cgen" for snapshot comparison.
|
2015-07-08 18:24:55 +02:00
|
|
|
* Bugfix: fix crash in summary display (close: #22).
|
2015-05-28 14:39:12 +02:00
|
|
|
|
2015-05-27 17:36:58 +02:00
|
|
|
btrbk-0.19.0
|
2015-05-25 14:38:32 +02:00
|
|
|
|
|
|
|
* Added "snapshot_create onchange", which skips snapshot creation if
|
|
|
|
the latest snapshot is up-to-date (i.e. has same generation as the
|
2015-05-26 18:19:51 +02:00
|
|
|
source subvolume).
|
2015-05-26 19:26:39 +02:00
|
|
|
* Improved handling of command line subvolume filter for "run",
|
2015-07-08 18:24:55 +02:00
|
|
|
"dryrun" and "tree" actions (close: #21).
|
2015-05-26 20:19:57 +02:00
|
|
|
* Bugfix: fixed crash in action "diff".
|
2015-05-25 14:38:32 +02:00
|
|
|
|
2015-05-21 14:47:38 +02:00
|
|
|
btrbk-0.18.0
|
2015-05-19 18:22:55 +02:00
|
|
|
|
2015-05-21 14:47:38 +02:00
|
|
|
* MIGRATION
|
|
|
|
- update ssh_filter_btrbk.sh on all remote hosts
|
|
|
|
- update configuration file (/etc/btrbk/btrbk.conf):
|
|
|
|
- "snapshot_create_always yes" -> "snapshot_create always"
|
|
|
|
- "snapshot_create_always no" -> "snapshot_create ondemand"
|
2015-05-19 18:22:55 +02:00
|
|
|
* Set PATH variable instead of using absolute "/sbin/btrfs" for
|
|
|
|
compatibility with all linux distros out there, which all install
|
2015-07-08 18:24:55 +02:00
|
|
|
'btrfs' in different locations (close: #20).
|
2015-05-20 21:51:20 +02:00
|
|
|
* Added configuration option "snapshot_create", replacing option
|
|
|
|
"snapshot_create_always". This allows setups with multiple btrbk
|
2015-07-08 18:24:55 +02:00
|
|
|
instances on several hosts (close: #18).
|
2015-05-15 20:24:14 +02:00
|
|
|
* Added command line option -r (resume only).
|
2015-05-19 18:22:55 +02:00
|
|
|
* Catch and display errors from "btrfs subvolume show".
|
2015-05-20 16:40:34 +02:00
|
|
|
* Include systemd service and timer unit for daily backups.
|
2015-05-19 18:22:55 +02:00
|
|
|
|
2015-05-15 17:55:48 +02:00
|
|
|
btrbk-0.17.1
|
2015-05-15 13:36:18 +02:00
|
|
|
|
2015-05-15 16:06:36 +02:00
|
|
|
* Bugfix: send/receive: delete possibly left-behind garbled
|
|
|
|
subvolume on failure. Fail with unrecoverable error if stray
|
2015-07-08 18:24:55 +02:00
|
|
|
target subvolume is in the way (close: #17).
|
2015-05-15 13:36:18 +02:00
|
|
|
* Bugfix: assume unreachable target as clean on snapshot creation if
|
2015-07-08 18:24:55 +02:00
|
|
|
snapshot_create_always is set (close: #19).
|
2015-05-15 13:36:18 +02:00
|
|
|
|
2015-04-30 14:45:50 +02:00
|
|
|
btrbk-0.17.0
|
2015-04-28 21:22:00 +02:00
|
|
|
|
|
|
|
* New versioning scheme using more common three-level versions.
|
|
|
|
* Code refactoring: cleanup of data structures and handling of btrfs
|
|
|
|
subvolume tree, as well as security related code parts.
|
2015-07-08 18:24:55 +02:00
|
|
|
* Correct handling of symlinks to btrfs subvolumes (close: #12).
|
|
|
|
* Added configuration option "snapshot_name" (close: #5).
|
2015-04-29 00:34:11 +02:00
|
|
|
* Log messages now go to stderr, only the summary is printed on
|
|
|
|
stdout.
|
2015-07-08 18:24:55 +02:00
|
|
|
* Bugfix: allow "0" as subvolume name (close: #10).
|
|
|
|
* Bugfix: allow "/" as volume name (close: #15).
|
2015-04-07 12:57:11 +02:00
|
|
|
* Bugfix: check source AND targets for determining snapshot postfix
|
2015-07-08 18:24:55 +02:00
|
|
|
(close: #11).
|
2015-04-28 21:22:00 +02:00
|
|
|
* Bugfix: fixed "diff" action (colses: #14).
|
|
|
|
* Allow '+' character for subvolume names.
|
|
|
|
* Filesystems on remote hosts are now printed as
|
|
|
|
"{my.remote-host.com}" in summary and logs.
|
2015-04-07 11:52:45 +02:00
|
|
|
|
2015-04-02 17:10:28 +02:00
|
|
|
btrbk-0.16
|
|
|
|
|
2015-04-18 20:18:11 +02:00
|
|
|
* Bugfix: correctly check retention policy for missing backups.
|
2015-04-02 17:10:28 +02:00
|
|
|
|
2015-04-01 16:20:06 +02:00
|
|
|
btrbk-0.15
|
2015-04-01 16:16:27 +02:00
|
|
|
|
|
|
|
* Added configuration option "btrfs_progs_compat", to be enabled if
|
2015-07-08 18:24:55 +02:00
|
|
|
using btrfs-progs < 3.17 (close: #6).
|
2015-04-01 16:16:27 +02:00
|
|
|
* Added configuration option "resume_missing", for automatic resume
|
2015-07-08 18:24:55 +02:00
|
|
|
of missing backups (close: #8).
|
2015-04-01 16:16:27 +02:00
|
|
|
* Removed configuration option "receive_log" in favor of printing
|
|
|
|
errors from "btrfs receive".
|
|
|
|
* Bugfix: show correct exit code on external command failure.
|
|
|
|
* Bugfix: no crash if "commit_delete" option is set to "no"
|
|
|
|
|
|
|
|
btrbk-0.14
|
|
|
|
|
|
|
|
* Bugfix: correctly handle empty target subvolumes (blocker for all
|
2015-07-08 18:24:55 +02:00
|
|
|
new users; close: #4).
|
2015-04-01 16:16:27 +02:00
|
|
|
|
|
|
|
btrbk-0.13
|
|
|
|
|
|
|
|
* Bugfix: allow '@' character for subvolume names (blocker for
|
2015-03-19 17:20:21 +01:00
|
|
|
ubuntu users, since ubuntu prefixes all subvolumes with '@' in its
|
2015-07-08 18:24:55 +02:00
|
|
|
subvolume layout; close: #3).
|
2015-04-01 16:16:27 +02:00
|
|
|
|
|
|
|
btrbk-0.12
|
|
|
|
|
|
|
|
* Cleaner and more generic parsing of btrfs subvolume list.
|
2015-07-08 18:24:55 +02:00
|
|
|
* Bugfix: subvolumes are also allowed for "snapshot_dir" (close:
|
2015-04-01 16:16:27 +02:00
|
|
|
#1, #2).
|
|
|
|
|
|
|
|
btrbk-0.11
|
|
|
|
|
|
|
|
* Added option -p (preserve backups).
|
|
|
|
* Added optional subvolume argument for run/dryrun actions, for
|
|
|
|
explicit selection of subvolumes to be processed.
|
|
|
|
* Bugfixes
|
|
|
|
|
|
|
|
btrbk-0.10
|
|
|
|
|
|
|
|
* Initial revision.
|