diff --git a/hosts/yodaHedgehog/host-specific.nix b/hosts/yodaHedgehog/host-specific.nix index 376fe20..9d3b517 100644 --- a/hosts/yodaHedgehog/host-specific.nix +++ b/hosts/yodaHedgehog/host-specific.nix @@ -42,7 +42,7 @@ in path = with pkgs; [ # Provides `ssh` openssh - # Provides `readlink` (with support for parameter `-e`, required by `btrbk`) + # Provides `sync`, `readlink` (with support for parameter `-e`, required by `btrbk`) coreutils # Provides `awk`, `grep`, `sleep`, `printf`, `echo`, 'sendmail', `readlink` (without support for parameter `-e`) busybox @@ -126,6 +126,8 @@ in sleep 15s #printf '%s\n' 'Finished backup script.' + # Sync changed files to disk to reduce risk of file corruption in case of power loss. + sync # Suspend to save power. systemctl suspend '';