Updated Restic config layout

master
Illia Chub 2020-09-03 17:02:47 +03:00
parent 2b0d83f93b
commit a57701ea3c
1 changed files with 3 additions and 2 deletions

View File

@ -11,10 +11,11 @@
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = "restic"; User = "restic";
Environment = [ "AWS_ACCESS_KEY_ID=AKIAJOVDNQ6FERMIDHKA" "AWS_SECRET_ACCESS_KEY=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" ];
}; };
script = '' script = ''
restic -r s3:s3.amazonaws.com/ backup /var/vmail /var/vmail restic -r s3:s3.amazonaws.com/haep9c-backup backup /var/vmail /var/vmail
''; ''
}; };
}; };
users.users.restic = { users.users.restic = {