Compare commits

..

1 commit

Author SHA1 Message Date
b6c2893a3e Backup des Fachschaftsaccounts 2024-02-08 07:42:05 +01:00

View file

@ -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";