Compare commits
1 commit
001f4f49a7
...
b6c2893a3e
Author | SHA1 | Date | |
---|---|---|---|
b6c2893a3e |
1 changed files with 3 additions and 2 deletions
|
@ -109,8 +109,9 @@ in {
|
||||||
# Configure backup of files on the department's fs account
|
# Configure backup of files on the department's fs account
|
||||||
jobs.fsaccount = {
|
jobs.fsaccount = {
|
||||||
preHook = ''
|
preHook = ''
|
||||||
mkdir -p /home/fsaccount/sicherung # Create if it does not exist
|
rm -rf /home/fsaccount/sicherung
|
||||||
rsync -e 'ssh -i /home/fsaccount/.ssh/fsaccount' -r fachschaft@gw1.mathematik.tu-darmstadt.de:/home/fachschaft/* /home/fsaccount/sicherung
|
mkdir /home/fsaccount/sicherung
|
||||||
|
scp -i /home/fsaccount/.ssh/fsaccount -r fachschaft@gw1.mathematik.tu-darmstadt.de:/home/fachschaft/* /home/fsaccount/sicherung/
|
||||||
'';
|
'';
|
||||||
paths = "/home/fsaccount/sicherung";
|
paths = "/home/fsaccount/sicherung";
|
||||||
encryption.mode = "none";
|
encryption.mode = "none";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue