zfsborg: sleep a bit before mounting
This commit is contained in:
parent
2c4598ba7b
commit
537800ec59
@ -4,8 +4,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
mkPreHook = mountpoint: zfs_name: ''
|
mkPreHook = mountpoint: zfs_name: i: ''
|
||||||
set -x
|
set -x
|
||||||
|
sleep ${toString i}
|
||||||
mkdir "$RUNTIME_DIRECTORY/snapshot"
|
mkdir "$RUNTIME_DIRECTORY/snapshot"
|
||||||
${pkgs.util-linux}/bin/mount \
|
${pkgs.util-linux}/bin/mount \
|
||||||
-t zfs \
|
-t zfs \
|
||||||
@ -78,7 +79,7 @@ in {
|
|||||||
extraArgs = "--remote-path=borg1";
|
extraArgs = "--remote-path=borg1";
|
||||||
compression = "auto,lzma";
|
compression = "auto,lzma";
|
||||||
startAt = attrs.backup_at;
|
startAt = attrs.backup_at;
|
||||||
preHook = mkPreHook mountpoint fs.device;
|
preHook = mkPreHook mountpoint fs.device i;
|
||||||
prune.keep = {
|
prune.keep = {
|
||||||
within = "1d";
|
within = "1d";
|
||||||
daily = 7;
|
daily = 7;
|
||||||
|
Loading…
Reference in New Issue
Block a user