Commit Graph

491 Commits (796b6bd9bf70d95e799e5b084088001db9d487ef)

Author SHA1 Message Date
Axel Burri 796b6bd9bf btrbk: replace "realpath -e" with "readlink -e" for mountpoint discovery 2016-06-18 13:04:43 +02:00
Axel Burri 91d02ca97b change version to 0.23.2 2016-06-07 16:41:41 +02:00
Axel Burri 3a8665bce9 documentation: add information about wildcard characters for subvolume section; cleanup 2016-06-07 16:37:32 +02:00
Axel Burri e4a7ba4be5 btrbk: add lockfile support, using perl "flock": add configuration option "lockfile <file>", and command line option "--lockfile"' 2016-06-07 16:17:02 +02:00
Axel Burri 6532229361 documentation: FAQ.md: recent versions of btrfs-progs print "is toplevel subvolume" instead of "is btrfs root" 2016-05-30 13:20:47 +02:00
Axel Burri 36edda5123 documentation: replace wrong "target_min" with "target_preserve_min" in example config 2016-05-30 13:19:07 +02:00
Axel Burri 7326b9816c btrbk: bugfix: raw targets: correctly handle multiple backups in same target directory 2016-05-09 12:42:04 +02:00
Axel Burri eabdba482e btrbk-mail: Use relative instead of absolute calls to system binaries
Make sure to have apropriate PATH set when calling btrbk-mail.
Usually specified in /etc/crontab, and should be correct by default on
all distros.
2016-05-09 12:13:22 +02:00
Benedikt Morbach df7473f7df Makefile: respect BINDIR in systemd service 2016-05-09 12:03:59 +02:00
Axel Burri cb0851c8b6 change version to 0.23.1 2016-05-03 16:21:34 +02:00
Axel Burri 65ebf949d1 documentation: cosmetics: groff: consistently use minus "\-" instead of hyphen "-" where applicable 2016-05-03 16:01:39 +02:00
Axel Burri cb6dcbe58e documentation: cosmetics (no more long lines) 2016-05-03 15:30:06 +02:00
Axel Burri 5cd03a8fbf btrbk: remove absolute path to executables, this caused trouble on some distros 2016-05-03 14:34:04 +02:00
Axel Burri 54b5368309 btrbk: code cleanup (remove unneeded code, rename vars) 2016-05-03 13:19:42 +02:00
Axel Burri 12d435d42a btrbk: explain "orphaned" status in "stats" command, and suppress it on "list backups" command 2016-04-30 13:01:12 +02:00
Axel Burri 46f1e5e2e4 btrbk: only load Data::Dumper if needed (log level "trace", or development version); cosmetics 2016-04-28 13:03:15 +02:00
Axel Burri 49ae46d51d btrbk: do not print headers to transaction_log, these are documented in btrbk.conf(5) 2016-04-28 12:51:00 +02:00
Axel Burri e9e398af37 Merge branch 'syslog' 2016-04-28 12:45:13 +02:00
Axel Burri 7a469597ac documentation: describe transaction log table format; cosmetics 2016-04-28 12:44:33 +02:00
Axel Burri 7e7c28f8f1 btrbk: add eval_quiet(), a simple wrapper around eval, disabling $SIG_(__DIE__) 2016-04-28 12:43:32 +02:00
Axel Burri 082754173c btrbk: bugfix: raw targets: do not inject child if add_btrbk_filename_info() failed 2016-04-25 21:12:33 +02:00
Axel Burri 47eb14f5fb btrbk: syslog: add syslog hack in print_formatted(); remove print-to-scalar hack 2016-04-25 19:40:11 +02:00
Axel Burri c424d917b6 btrbk: syslog: only load Sys::Syslog module if configuration option is set; soft-fail on syslog calls 2016-04-25 18:36:54 +02:00
Hans van Kranenburg 59d96420c8 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-25 17:32:08 +02:00
Axel Burri 81feb41619 ssh_filter_btrbk: allow access to "/" if no path restrictions are set. 2016-04-25 16:58:56 +02:00
Axel Burri 89df601ee5 btrbk: allow "<hostname>:<path>" notation for volume and target sections 2016-04-25 16:34:52 +02:00
Axel Burri 702ee8950e btrbk: bugfix: vinfo(): correctly parse url, using check_url() 2016-04-25 15:10:00 +02:00
Axel Burri 357b72bd3f btrbk: code cleanup: check_file() and check_url() do all the sanitize parts 2016-04-25 14:23:15 +02:00
Axel Burri 191284cd43 btrbk: bugfix: set correct parent section when propagating targets 2016-04-24 15:59:17 +02:00
Axel Burri 4ffaf430c5 change version to 0.23.0 2016-04-23 15:06:57 +02:00
Axel Burri b4c4a96b14 Makefile: add doc/upgrade_to_v0.23.0.md 2016-04-23 15:04:45 +02:00
Axel Burri 2e8e4ddefc btrbk: cosmetics: change info log of send/receive; change topic line; fix typos 2016-04-23 14:58:08 +02:00
Axel Burri efc260ef91 btrbk: add sanity check on timezone offset; add documentation about implications of long-iso time format 2016-04-23 14:49:12 +02:00
Axel Burri c7dd680537 btrbk: make sure that snapshots/backups with date in the future are never deleted 2016-04-22 20:51:31 +02:00
Axel Burri ecb2307b22 btrbk: send/receive: only inject child if target creation was successful 2016-04-22 20:25:30 +02:00
Axel Burri 3ffa63daba btrbk: bugfix: btrfs_subvolume_show(): quote real_path everywhere 2016-04-22 20:17:26 +02:00
Axel Burri c13c99ada5 btrbk: add new time_format "long-iso", with seconds and timezone offset (iso8601 format); add function timestamp(): remove dependency to POSIX 2016-04-22 19:47:01 +02:00
Axel Burri e824c21f50 btrbk: use build-in Time::Local in combination with localtime() instead of Date::Calc; correctly calculate leap hours 2016-04-20 22:45:11 +02:00
Axel Burri c73dffbd25 btrbk: handle missing Data::Dumper gracefully 2016-04-19 22:12:08 +02:00
Axel Burri 829490f963 btrbk: put btrbk filename info directly to tree node (parse only once)
performance win: factor 2.3
2016-04-19 22:04:07 +02:00
Axel Burri c225231742 btrbk: reuse subvol list for get_receive_targets()
performance win: factor 2.6 !
2016-04-19 22:01:23 +02:00
Axel Burri 2b22524ccd btrbk: sane defaults: xxx_preserve_min defaults to "all", xxx_preserve default to "no" (for backwards compatibility with 0.22.0 default) 2016-04-19 21:37:04 +02:00
Axel Burri 29b9c8fc60 btrbk: action "archive": abort if receive targets of archive candidates exist at unexpected location. makes sure we dont have duplicates on our archives 2016-04-19 21:02:51 +02:00
Axel Burri 5e7a6e5ef4 btrbk: action "archive": delete archives according to archive retention policy 2016-04-19 21:02:51 +02:00
Axel Burri 31f0f97ff0 btrbk: fix info logging for send/receive 2016-04-19 21:02:51 +02:00
Axel Burri 7807fface8 btrbk: cosmetics; s/config_override_opts/config_override_cmdline/g 2016-04-19 21:02:51 +02:00
Axel Burri 2c3997ad0a btrbk: bugfix: action "config print": correctly handle undef options; skip deprecated options 2016-04-19 21:02:47 +02:00
Axel Burri 2317580639 documentation: README.md: add update notice (v0.22.2 -> v0.23.0) 2016-04-18 00:16:45 +02:00
Axel Burri a27f99af46 change version to 0.23.0-rc1 2016-04-17 21:46:56 +02:00
Axel Burri bbb18f5af7 btrbk: cosmetics on info warnings 2016-04-17 21:46:53 +02:00