Axel Burri
407d25f604
ssh_filter_btrbk: cosmetics: fix indentation (remove tabs)
2016-03-31 17:24:24 +02:00
Axel Burri
ccb5ed5e71
ssh_filter_btrbk: allow "realpath" and "cat /proc/self/mounts" on targets
2016-03-31 17:24:24 +02:00
Axel Burri
90a3537433
documentation: add documentation for target propagation and target directories
2016-03-31 17:24:24 +02:00
Axel Burri
79caba4267
btrbk: rename %symlink -> %realpath_cache (returning real_path instead of real_url)
2016-03-31 17:24:24 +02:00
Axel Burri
7ee5778dee
btrbk: bugfix: print correct target on "same backup target error"
2016-03-31 17:24:24 +02:00
Axel Burri
c4073f6c53
btrbk: print target_path instead of target_subvol for "list {target,config}"
2016-03-31 17:24:24 +02:00
Axel Burri
3ada7c174e
btrbk: allow targets to be directories (use mountpoint framework)
2016-03-31 17:24:24 +02:00
Axel Burri
06043cf800
btrbk: add btrfs mountpoint resolving functionality
2016-03-31 17:24:23 +02:00
Axel Burri
de96f267b8
btrbk: propagate target sections to (sub-)subsections (allow target sections everywhere in the config)
2016-03-31 17:24:18 +02:00
Axel Burri
f9ca7504c8
btrbk: add configuration option "rate_limit" (using pv -L)
...
Original patch provided by @janpascal: "Jan-Pascal van Best"
2016-03-23 11:58:35 +01:00
Axel Burri
e6d46e8a02
btrbk: fix regression: correctly handle previously received subvolumes in get_latest_common()
...
regression from: 8819c67502
2016-03-22 19:30:21 +01:00
Axel Burri
7bb18050f8
btrbk: detect interrupted transfers of raw targets; delete incomplete raw targets on action "clean"
2016-03-22 19:28:05 +01:00
Moritz Ulrich
d47cc25f60
btrbk-mail: bugfix: use `btrbk` instead of unbound variable `$btrbk`
2016-03-21 18:52:53 +01:00
Axel Burri
c2b11775a0
btrbk: cosmetics: adapt debug/trace messages
2016-03-16 19:21:48 +01:00
Axel Burri
1adb318f02
documentation: cosmetics: change all url from www.digint.ch to digint.ch
2016-03-16 18:34:28 +01:00
Axel Burri
cd8ac043a8
ChangeLog: add missing items
2016-03-16 18:34:28 +01:00
Axel Burri
247f023bab
btrbk: allow wildcards in subvolume section; add option "wildcards" in check_file()
2016-03-16 18:17:44 +01:00
Axel Burri
b9fa3e6e90
btrbk: add init_config(); use default config in action "diff"; use root config context for action "origin"
2016-03-15 16:54:54 +01:00
Axel Burri
8819c67502
btrbk: fixed raw targets
2016-03-15 14:53:51 +01:00
Axel Burri
e9bc4950ac
btrbk: re-ordering of functions (no functional changes)
2016-03-15 11:21:59 +01:00
Axel Burri
207e8868da
btrbk: no more copy of node information in vinfo by vinfo_set_detail(); always use vinfo->{node}{key}; cleanup
2016-03-14 20:21:12 +01:00
Axel Burri
9a68ab6519
btrbk: use symlink hash instead of REAL_URL
2016-03-14 15:56:20 +01:00
Axel Burri
cab2a88843
btrbk: move url_cache lookup to vinfo_subvol_list
2016-03-14 12:59:24 +01:00
Axel Burri
14d1ca1976
btrbk: add warning if a receive target of resume candidate exists at unexpected location
2016-03-12 19:16:07 +01:00
Axel Burri
1b45db3c59
btrbk: simplify btr_tree: SUBTREE is now list instead of hash; add TREE_ROOT pointer to every node; cleanup
2016-03-11 14:55:22 +01:00
Axel Burri
97caced09d
btrbk: rename %btrfs_tree_cache -> %url_cache, %uuid_info -> %uuid_cache; cleanup
2016-03-10 22:21:55 +01:00
Axel Burri
84820933ed
btrbk: remove %uuid_url_map (replace by get_cached_url_by_uuid() operating on %btrfs_tree_cache)
2016-03-10 22:21:55 +01:00
Axel Burri
743d7704f5
btrbk: correctly fill cache; fix vinfo_set_detail; add debug functionality (VINFO(), SUBTREE_LIST()); cleanup
2016-03-10 22:21:55 +01:00
Axel Burri
e85b6dadf1
btrbk: data structure refactoring:
...
- remove %subvol_list_cache: may slow down aa bit, but makes possible
to inject nodes correctly
- simplify subtree list (is now an array as it should have been from
the beginning); correctly fill tree_cache
- fix vinfo_set_detail; cleanup
2016-03-10 22:19:36 +01:00
Axel Burri
1d054bf04a
btrbk: refactoring of add global caches: reduce btrfs-progs calls, and make sure all root vinfo (especially targets) with same URL share the same SUBVOL_LIST reference.
...
- %btrfs_tree_cache (replaces %root_tree_cache)
- %subvol_list_cache (replaces %vinfo_cache):
- vinfo_init_root() (was: vinfo_root()) now lookups in cache before
calling btrfs_subvolume_detail()
- vinfo_subvol_list() now lookups in cache before calling
btrfs_subvolume_list()
2016-03-09 19:52:45 +01:00
Axel Burri
ba90c13320
btrbk: fixed schedule() debug text
2016-03-08 18:22:58 +01:00
Axel Burri
c1b27c744b
btrbk: clone target subvolume tree if same url as other target (less btrfs calls, shared SUBVOL_LIST)
2016-03-08 16:41:02 +01:00
Axel Burri
eba08f2ca3
btrbk: add config_preserve_hash(); fix macro_delete()
2016-03-08 15:31:16 +01:00
Axel Burri
5cc908313a
btrbk: cleanup trace output; cosmetics
2016-03-08 15:31:08 +01:00
Axel Burri
f770488d85
btrbk: adapt all actions to use vinfo_subsection()
2016-03-07 22:54:27 +01:00
Axel Burri
fbbd82114d
btrbk: move SUBVOL_RECEIVED, SUBVOL_DELETED, SNAPSHOT_CREATED, SNAPSHOT_UP_TO_DATE data from config to corresponding vinfo
2016-03-07 21:45:12 +01:00
Axel Burri
6f1e94eb27
btrbk: adapt action "run" to use vinfo_subsection()
2016-03-07 20:47:24 +01:00
Axel Burri
b2be1357eb
btrbk: fixed vinfo_set_detail(), while being very paranoid; fixed vinfo_subsection (was: valid_subsection_vinfo); adaptions in vinfo readin (working again)
2016-03-07 20:30:06 +01:00
Axel Burri
ab4ded9830
btrbk: ABORTED() now sets $abrt to last message (useful for warnings after abort)
2016-03-07 20:29:57 +01:00
Axel Burri
96faae9659
btrbk: be harsh, remove sroot, droot, svol in config (will break a lot of things!)
2016-03-07 19:15:57 +01:00
Axel Burri
d3148851c5
btrbk: first adaptions for vinfo holding config
2016-03-07 17:36:02 +01:00
Axel Burri
ceb346db66
btrbk: skeleton for vinfo holding config
2016-03-07 17:35:17 +01:00
Axel Burri
5030d54318
btrbk: split "check for duplicate snapshot locations" from "fill vinfo hash"
2016-03-07 15:33:37 +01:00
Axel Burri
46bd1ad52a
btrbk: add function macro_delete(), used by snapshot/backup delete
2016-03-02 00:04:24 +01:00
Axel Burri
e806d4812f
btrbk: cosmetics: adapt debug text and variable names for macro_send_receive() and similar
2016-03-01 21:55:09 +01:00
Axel Burri
6c9643f2be
btrbk: action "diff": print total size
2016-03-01 21:52:06 +01:00
Axel Burri
a1124053a7
btrbk: bugfix: sort numerically (low prio, affects only list output)
2016-03-01 19:31:43 +01:00
Axel Burri
ac1b7271c4
btrbk: read readonly flag in btrfs_subvolume_list(). this requires an additional call to btrfs-progs.
2016-03-01 15:10:37 +01:00
Axel Burri
9eb38ac9d0
btrbk: add {snapshot,target}_preserve shortcut
2016-03-01 12:30:35 +01:00
Axel Burri
b90cc132c1
documentation: add documentation for {snapshot,target}_preserve_yearly
2016-03-01 12:07:37 +01:00