move systemd units to subdirectory

This commit is contained in:
Daniel Micay 2022-08-11 13:05:24 -04:00
parent 36d1b69e6b
commit db209e53b4
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@ ssh $remote "mkdir local-backup"
ssh $remote "mkdir local-backup/$timestamp"
ssh $remote "pg_dumpall -U postgres > local-backup/$timestamp/all_databases.sql"
ssh $remote "cp -a /etc/synapse local-backup/$timestamp/synapse"
ssh $remote "cp -r /etc/synapse local-backup/$timestamp/synapse"
ssh $remote "tar -cC local-backup $timestamp | zstd -9 | age -r \$(cat backup-public-key.txt) -o local-backup/$timestamp.tar.zst.age"
rsync -v $remote:./local-backup/$timestamp.tar.zst.age backup/

View File

@ -8,6 +8,6 @@ mkdir remote-backup
mkdir remote-backup/$timestamp
pg_dumpall -U postgres > remote-backup/$timestamp/all_databases.sql
cp -a /etc/synapse remote-backup/$timestamp/synapse
cp -r /etc/synapse remote-backup/$timestamp/synapse
tar -cC remote-backup $timestamp | zstd -9 | age -r $(cat backup-public-key.txt) -o remote-backup/$timestamp.tar.zst.age
sshpass -f cloud-archive-password.txt rsync -v ./remote-backup/$timestamp.tar.zst.age pca@gateways.storage.gra.cloud.ovh.net:backup/