diff --git a/local-backup b/local-backup index c27fa6b..e10ebf7 100755 --- a/local-backup +++ b/local-backup @@ -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/ diff --git a/remote-backup b/remote-backup index f29df48..2e610aa 100755 --- a/remote-backup +++ b/remote-backup @@ -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/