omo-download-sync: init

This commit is contained in:
makefu 2024-12-07 23:36:42 +01:00
parent 10491a1371
commit ddebfec2e9
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
systemd.services.download-sync = {
# startAt = "hourly";
startAt = "*:0/30"; # 30 minutes
path = [ pkgs.rsync ];
script = ''
rsync -a --omit-dir-times --no-perms --no-owner --progress --stats /media/cloud/download/. /media/crypt1/download/.
'';
serviceConfig = {
User = "download";
PrivateTmp = true;
};
};
}