Axel Burri
0b41942251
github: add FUNDING.yml
2022-05-29 16:21:38 +02:00
Axel Burri
9e32df5f90
documentaion: README.md: rephrase donate section
2022-05-29 16:02:00 +02:00
Axel Burri
eadeb89232
btrbk: check results of btrfs filesystem usage
2022-05-29 14:32:27 +02:00
Axel Burri
691885e6b8
documentation: add compat=ignore_receive_errors option
2022-05-29 13:53:56 +02:00
Axel Burri
b8464119f6
btrbk: add compat=ignore_receive_errors option
2022-05-29 12:29:19 +02:00
Axel Burri
023d75f7a5
documentation: cosmetics
2022-05-29 12:29:16 +02:00
Axel Burri
619403c9ad
documentation: fix action "config print"
2022-05-29 12:29:13 +02:00
Axel Burri
527d1bf74f
btrbk: improve action "config print"
...
- honor overrides
- print unset lines as comments
- skip lines on forbidden context
- fix values "no" and "<unset>"
2022-05-29 12:26:37 +02:00
Axel Burri
f187d6f6ee
btrbk: tidy formatting
2022-05-29 12:26:37 +02:00
Axel Burri
321f3783d5
btrbk: use split in ssh_cipher_spec config definition
2022-05-29 12:21:39 +02:00
Axel Burri
ce2afb427d
btrbk: split all config values with same regex
2022-05-28 21:28:42 +02:00
Axel Burri
ba3ee70d38
btrbk: tidy config options definition
2022-05-28 21:28:39 +02:00
Axel Burri
823419d510
btrbk: tidy config options parser
...
- handle regex within accept list
- handle numeric as regex
- split before checking accept
2022-05-28 21:27:39 +02:00
Axel Burri
90c5d119f6
documentation: clarify btrfs_commit_delete
2022-05-27 20:14:02 +02:00
Axel Burri
267cbcacdc
documentation: clarify filter statement match multiple times
2022-05-27 19:31:48 +02:00
Axel Burri
04e0695429
btrbk: tidy logging
2022-05-27 19:31:48 +02:00
Axel Burri
12f608d828
btrbk: fix regression: clear realpath cache on mkdir
...
On btrbk archive, after creating a directory without dry-run, the
archive target is skipped with "Failed to fetch subvolume detail" due
to caching of realpath.
Regression in btrbk-0.32.0:
eb69bc883e
btrbk: refactor mountinfo
2022-05-27 19:31:48 +02:00
Axel Burri
4fcbbad802
btrbk: print version and help to stdout
2022-03-25 15:20:20 +01:00
Axel Burri
be07f1908a
btrbk: print shorter error help message
2022-03-25 15:20:14 +01:00
Axel Burri
fc49abbbf8
btrbk: bump version to 0.32.2-dev
2022-03-25 15:19:59 +01:00
Axel Burri
593fa6b254
change version to 0.32.1; update Changelog
2022-02-26 18:35:09 +01:00
Axel Burri
d9b9f20899
bump copyright year
2022-02-26 18:35:02 +01:00
Axel Burri
795418ebe1
btrbk.conf.example: remove timestamp_format
...
Now that timestamp_format defaults to "long", it seems no longer
needed to even mention it here. Setting to "short" or "long-iso" is
only required in rather special use cases.
2022-02-26 18:11:09 +01:00
Axel Burri
671df969a1
documentation: rephrase timestamp_format notes on preserve_hour_of_day
2022-02-26 18:11:09 +01:00
Axel Burri
047d3a1a65
btrbk: allow directory traversal for subvol_args
2022-02-26 18:11:09 +01:00
Axel Burri
a25486336b
btrbk: fix regression: filter paths for action "ls"
...
regression from: eb69bc883e
btrbk: refactor mountinfo
2022-02-26 18:11:09 +01:00
Axel Burri
ff0a887c32
btrbk: call filesystem usage from mount point
2022-02-22 20:28:23 +01:00
Axel Burri
e9fe2cb5f5
btrbk: display all source subvolumes in btrbk usage
2022-02-22 20:28:17 +01:00
Axel Burri
31ce14e4c2
btrbk: handle errors from btrfs filesystem usage
...
Fix `btrbk usage` unhandled error case if usage data cannot be
retrieved, e.g.:
ERROR: Failed to fetch btrfs filesystem usage for: example.com:/mnt/btr_pool
ERROR: ... sh: ssh -i 'XXX' btrbk@example.com 'btrfs-filesystem-usage '\''/mnt/btr_pool'\'''
ERROR: ... cannot access '/mnt/btr_pool': Permission denied
2022-02-22 20:28:01 +01:00
Axel Burri
0388cf4b2d
documentation: add backend btrbk-progs-doas
2022-02-08 01:20:24 +01:00
Axel Burri
177f8547e3
btrbk: add backend btrfs-progs-doas
2022-02-08 01:06:04 +01:00
Axel Burri
d3b7540b87
btrbk: tidy backend command map
2022-02-08 01:05:59 +01:00
Axel Burri
db7082b4bc
btrbk: add config_key_lru comfort function
2022-02-06 17:44:30 +01:00
Axel Burri
68d5fe3f55
btrbk: add match argument in config_key
2022-02-06 17:44:30 +01:00
Axel Burri
e6ed21343c
btrbk: remove dead code
2022-02-06 16:05:12 +01:00
Axel Burri
0172e4a240
btrbk: fix mountinfo tree root detection
...
Set node as tree root if mount_id == parent_id. For some reasons this
is never the case on my (mostly gentoo) systems.
Regression from: eb69bc88
btrbk: refactor mountinfo
2022-02-06 12:35:57 +01:00
Axel Burri
ed8142ed9d
btrbk: bump version to 0.32.1-dev
2022-02-06 12:35:53 +01:00
Axel Burri
8676191d45
change version to 0.32.0; update Changelog
2022-02-05 19:34:54 +01:00
Axel Burri
8cc74fecc1
btrbk: default timestamp_format=long
...
This is a relict of early days of btrbk, and I have already hesitated
for too long to change the default from legacy "short" to sane "long"
format.
Tests show that the scheduling behaves in a sane/expected way if this
change is applied unattended. I suppose everybody who has
preserve_hour_of_day set is already using timestamp_format=long.
2022-02-05 18:47:49 +01:00
znerol
c5273a8745
documentation: fix openssh website URL
2021-11-06 17:24:52 +01:00
Axel Burri
ca166d47b6
btrbk: add safe_commands config option
...
For the paranoid. For convenience, filename checking was removed in
[1], and quoting was (hopefully) implemented correctly in [2].
Allowing special characters as well as UTF8 leave behind a bad
feeling, as there are many special cases that needs to be taken care
of (e.g. newlines in file names, right-to-left encoding, etc.). In
order to mitigate attacks expoiting these error classes, leave an
option to power users which do only allow "sane" characters in their
filename hierarchy.
[1] 6a29b08f00
btrbk: remove filename restrictions
[2] acc7f9fc83
btrbk: quote unsafe characters in shell commands
2021-11-06 16:40:47 +01:00
Axel Burri
4f72ad123f
btrbk: tidy error message
2021-11-06 16:09:51 +01:00
Axel Burri
2b21d1528c
documentation: add "reference time" subsection
2021-11-06 13:50:38 +01:00
Axel Burri
ed814aed5a
documentation: rephrase retention policy
2021-11-06 13:27:22 +01:00
Axel Burri
cb38b7efa4
btrbk: parse additional "btrfs subvolume show" lines from btrfs-progs-5.14.2
2021-10-24 10:39:16 +02:00
Axel Burri
c538702d8c
btrbk: abort on unexpected only if receive target is not present
2021-10-04 19:17:36 +02:00
Axel Burri
4234fb2965
btrbk-verify: cleanup
2021-09-04 17:15:56 +02:00
Axel Burri
d554afab10
btrbk-verify: allow ssh-user without ssh-identity
...
Required e.g. if a ssh-agent is already running, and we want to set
user=root for rsync.
2021-09-04 16:57:05 +02:00
Axel Burri
bef13275d3
btrbk: fix regression: print quoted rsh command in table output
...
regression from: 27388c7589
btrbk: treat all filenames as unsafe
2021-09-04 15:46:57 +02:00
Axel Burri
1bda5fd978
btrbk: tidy safe_cmd; die if quoting leading dash for command
...
This should never happen, as all our filenames are checked to be
absolute.
2021-09-04 15:46:09 +02:00