fix(borgbackup): wait for network to be fully online before taking backup

This commit is contained in:
Khaïs COLIN 2024-08-23 14:42:09 +02:00
parent 9122cecdc2
commit 0afbec2131

View file

@ -36,5 +36,8 @@
compression = "auto,lzma"; compression = "auto,lzma";
startAt = "daily"; startAt = "daily";
persistentTimer = true; persistentTimer = true;
preHook = ''
/bin/sh -c 'while ! /run/current-system/sw/bin/ping -c1 google.com; do sleep 1; done'
'';
}; };
} }