1 |
commit: e53f272d76409544716dd6e79caf2732df65fe9f |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 16 19:19:48 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 16 19:20:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e53f272d |
7 |
|
8 |
app-backup/btrbk: ewarn when upgrading to 0.27 |
9 |
|
10 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
app-backup/btrbk/btrbk-0.27.0.ebuild | 23 +++++++++++++++++++++++ |
14 |
1 file changed, 23 insertions(+) |
15 |
|
16 |
diff --git a/app-backup/btrbk/btrbk-0.27.0.ebuild b/app-backup/btrbk/btrbk-0.27.0.ebuild |
17 |
index 9be9d8c87f3..f364036c572 100644 |
18 |
--- a/app-backup/btrbk/btrbk-0.27.0.ebuild |
19 |
+++ b/app-backup/btrbk/btrbk-0.27.0.ebuild |
20 |
@@ -36,10 +36,33 @@ pkg_preinst() { |
21 |
if has_version "<${CATEGORY}/${PN}-0.26.0" ; then |
22 |
upgrade_0_26_0_warning="1" |
23 |
fi |
24 |
+ if has_version "<${CATEGORY}/${PN}-0.27.0" ; then |
25 |
+ upgrade_0_27_0_warning="1" |
26 |
+ fi |
27 |
} |
28 |
pkg_postinst() { |
29 |
if [[ "${upgrade_0_26_0_warning}" == "1" ]]; then |
30 |
ewarn "If you are using raw targets, make sure to run the" |
31 |
ewarn "\"raw_suffix2sidecar\" utility in each target directory." |
32 |
fi |
33 |
+ if [[ "${upgrade_0_27_0_warning}" == "1" ]]; then |
34 |
+ ewarn 'Due to a bugfix in the scheduler [1] [2], previously preserved' |
35 |
+ ewarn 'monthly/yearly backups could get deleted when upgrading to' |
36 |
+ ewarn 'btrbk-0.27.0.' |
37 |
+ ewarn '' |
38 |
+ ewarn 'Before upgrading to btrbk-0.27.0, make sure to stop all cron jobs' |
39 |
+ ewarn 'or systemd timers calling btrbk.' |
40 |
+ ewarn '' |
41 |
+ ewarn 'After upgrading, run "btrbk prune --dry-run --print-schedule" and' |
42 |
+ ewarn 'check if any snapshots/backups would get deleted. If you want to' |
43 |
+ ewarn 'forcibly preserve a snapshot/backup forever, rename it:' |
44 |
+ ewarn '' |
45 |
+ ewarn ' mv mysubvol.YYYYMMDD mysubvol.YYYYMMDD.keep_forever' |
46 |
+ ewarn '' |
47 |
+ ewarn 'Note that btrbk ignores subvolumes with unknown naming scheme, e.g.' |
48 |
+ ewarn '(".keep_forever" suffix in the example above).' |
49 |
+ ewarn '' |
50 |
+ ewarn ' [1] https://github.com/digint/btrbk/issues/217' |
51 |
+ ewarn ' [2] https://github.com/digint/btrbk/commit/719fb5f' |
52 |
+ fi |
53 |
} |