mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
yodaHedgehog: sync after daily backup
This commit is contained in:
parent
e0468da85d
commit
1f91a58f81
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user