omo-download-sync: init
This commit is contained in:
parent
10491a1371
commit
ddebfec2e9
15
2configs/sync/omo-download-sync.nix
Normal file
15
2configs/sync/omo-download-sync.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue