yodaHedgehog: sync after daily backup

This commit is contained in:
Daniel Langbein 2024-02-23 19:12:30 +01:00
parent e0468da85d
commit 1f91a58f81
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -42,7 +42,7 @@ in
path = with pkgs; [ path = with pkgs; [
# Provides `ssh` # Provides `ssh`
openssh openssh
# Provides `readlink` (with support for parameter `-e`, required by `btrbk`) # Provides `sync`, `readlink` (with support for parameter `-e`, required by `btrbk`)
coreutils coreutils
# Provides `awk`, `grep`, `sleep`, `printf`, `echo`, 'sendmail', `readlink` (without support for parameter `-e`) # Provides `awk`, `grep`, `sleep`, `printf`, `echo`, 'sendmail', `readlink` (without support for parameter `-e`)
busybox busybox
@ -126,6 +126,8 @@ in
sleep 15s sleep 15s
#printf '%s\n' 'Finished backup script.' #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. # Suspend to save power.
systemctl suspend systemctl suspend
''; '';