Axel Burri
6e7c8c409b
btrbk: cosmetics: fix trace log
2021-08-18 02:08:28 +02:00
Axel Burri
9278211123
btrbk: fix resolved ambiguity in raw table formats
...
rename snapshot_path -> snapshot_subvolume
rename target_path -> target_subvolume
These point to subvolumes, not paths containing subvolumes.
2021-08-09 19:06:20 +02:00
Axel Burri
2347163780
btrbk: table formats: replace source_path with source_subvolume
2021-08-09 19:06:20 +02:00
Axel Burri
b658fba08c
btrbk: print snapdir and targets for action "usage"
2021-08-09 19:06:20 +02:00
Axel Burri
7603e03aad
btrbk: never match dummy volume section
2021-08-09 19:06:20 +02:00
Axel Burri
e1c5fd0029
btrbk: remove superfluous checks on volume
2021-08-09 19:06:20 +02:00
Axel Burri
47ea1f9481
btrbk: fix action "config print" for dummy volume section
2021-08-09 19:06:20 +02:00
Axel Burri
e257077241
btrbk: allow subvolume context without volume (add dummy section)
...
Unfortunately the framework relies on "url" for the volume. This
should not be printed anywhere, using "/dev/null" should be fine.
2021-08-09 19:06:20 +02:00
Axel Burri
e2de9de440
btrbk: expand subvolume globs independent of volume
2021-08-09 19:06:20 +02:00
Axel Burri
3b4f275126
btrbk: accept absolute path for subvolume
2021-08-09 19:06:20 +02:00
Axel Burri
d40d75ef76
btrbk: accept absolute path for snapshot_dir
2021-08-09 19:06:20 +02:00
Axel Burri
5b2644f12a
btrbk: fix check_file: accept both relative and absolute options
2021-08-09 19:06:20 +02:00
Axel Burri
d3d04f2252
btrbk: remove subvolume_path from schedule table
...
This is the only format where SUBVOL_PATH is displayed. As SUBVOL_PATH
is only available for vinfo_child, this can not be used in global
scope.
2021-08-09 19:06:20 +02:00
Axel Burri
c1610c754d
btrbk: cleanup: add config_subsection
2021-08-09 19:06:20 +02:00
Axel Burri
247cb37acf
btrbk: add comment on vinfo_child specific keys
2021-08-09 19:06:20 +02:00
Axel Burri
2d854c7327
btrbk: add comment on clone source from different mount point
2021-08-09 19:06:20 +02:00
Axel Burri
86e902cebc
btrbk: remove dead code
2021-08-09 19:06:20 +02:00
Axel Burri
ce9c21bd24
btrbk: tidy check for btrbk subvolume
...
The original idea was probably to have a trace log for skipped
subvols.
2021-08-09 19:06:20 +02:00
Axel Burri
f86c563715
btrbk: tidy superfluous subvol_dir argument
2021-08-09 19:06:20 +02:00
Axel Burri
2da30f6b96
btrbk: bump version to 0.32.0-dev
2021-08-09 19:06:20 +02:00
Axel Burri
feba54a68d
change version to 0.31.3; update ChangeLog
2021-08-07 00:13:21 +02:00
ullr23@gmail.com
322ae2c78f
btrbk: add support for zstd adaptive compression
...
Requires zstd version >= 1.3.6
2021-08-06 17:51:20 +02:00
Axel Burri
bf0b5997e8
btrbk: allow relative path arg for actions: archive, extents, diff, origin
2021-08-01 14:11:50 +02:00
Axel Burri
16cec0f6d4
btrbk: tidy map relative subvol argument
2021-07-25 13:32:27 +02:00
Axel Burri
2824668c0e
btrbk: fix path sanitizer
...
Sanitize "/././" -> "/"
2021-07-24 14:40:30 +02:00
Axel Burri
5524d16707
btrbk: add warn_unknown_targets config option
2021-07-15 14:11:03 +02:00
Axel Burri
54bb876b85
btrbk: tidy check_file
2021-07-15 14:11:03 +02:00
Axel Burri
47a3aa5849
btrbk: tidy assemble piped command; remove dead code
2021-07-15 14:11:03 +02:00
Axel Burri
af6d719acc
btrbk: fix: ignore mount points with unsupported filename in action "ls"
...
Mount points with illegal characters would die in vinfo. Print error
and ignore.
2021-07-15 14:11:03 +02:00
Axel Burri
12f6c5b69f
btrbk: tidy mountinfo comments
2021-07-15 14:11:03 +02:00
Axel Burri
6c13a64459
btrbk: fix mountinfo parsing (octal encoded chars)
...
Making sure this is done after splitting, as encoded value could be a
comma.
After some testing it shows that the kernel [1] produces ambigous
output in "super options" if a subvolume containing a comma is mounted
using "-o subvolid=" (tried hard to mount with "-o subvol=", seems not
possible via shell):
# btrfs sub create /tmp/btrbk_unittest/mnt_source/svol\,comma
# mount /dev/loop0 -o subvolid=282 '/tmp/btrbk_unittest/mount,comma'
# cat /proc/self/mountinfo
[...]
48 40 0:319 /svol,comma /tmp/btrbk_unittest/mount,comma rw,relatime - btrfs /dev/loop0 rw,ssd,noacl,space_cache,subvolid=282,subvol=/svol,comma
^^^^^^^^^^^^^^^^^^
[1] sys-kernel/gentoo-sources-5.10.45
2021-07-15 14:11:03 +02:00
Axel Burri
eac9ef9828
btrbk: print non-parseable btrfs mountpoint info only once
2021-07-15 14:11:03 +02:00
Axel Burri
db4f96ba65
btrbk: add function INFO_ONCE
2021-07-15 14:10:59 +02:00
Axel Burri
2c19c501a7
btrbk: add "-1,--single-column" command-line option
2021-07-15 13:50:11 +02:00
Axel Burri
e82836be47
btrbk: add single_column output format
2021-07-15 13:50:11 +02:00
Axel Burri
c06d94543c
btrbk: add "backups" output format
...
Preparatory for single-column patchset.
2021-07-15 13:50:11 +02:00
Axel Burri
d80a8abb8a
btrbk: add "latest" output format
...
Same as "resolved", but hides target if none present.
2021-07-15 13:50:11 +02:00
Axel Burri
d7902fb30c
btrbk: rename action_list table formats
2021-07-15 13:50:11 +02:00
Axel Burri
f197a08650
btrbk: tidy table_formats
2021-07-15 13:50:11 +02:00
Axel Burri
bd68b15ebc
btrbk: tidy print_formatted
2021-07-15 13:50:11 +02:00
Axel Burri
37ef87ddaf
btrbk: add url to fs_list raw format
2021-07-15 13:50:11 +02:00
Axel Burri
cd69d29705
btrbk: tidy variable name
...
Duplicate use (not a bug)
2021-07-15 13:50:04 +02:00
Axel Burri
043e270522
btrbk: change version to 0.31.3-dev
2021-05-27 23:26:38 +02:00
Axel Burri
e8622fc6be
change version to 0.31.2; update ChangeLog
2021-03-21 13:34:26 +01:00
Axel Burri
b8a6aaf799
btrbk: warn if no subvolume is configured
2021-03-18 20:03:03 +01:00
Axel Burri
a8341659be
btrbk: change version to 0.31.2-dev
2021-03-18 19:56:43 +01:00
Axel Burri
8402195487
change version to 0.31.1; update ChangeLog
2021-03-07 17:49:26 +01:00
Axel Burri
db8cc1cd14
btrbk: collapse empty column in total of action "stats"
2021-02-27 13:26:31 +01:00
Axel Burri
713fe50372
btrbk: add empty_cell_char argument to print_formatted
2021-02-27 13:26:03 +01:00
Axel Burri
cee6553a49
btrbk: fix duplicate snapshot location check
...
If snapshot_create=no, no snapshot is created and thus should be
excluded from "duplicate snapshot locations" check.
2021-02-14 15:05:03 +01:00