diff --git a/remote-backup b/remote-backup index 2bf10bd..f29df48 100755 --- a/remote-backup +++ b/remote-backup @@ -9,5 +9,5 @@ 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 -tar -c remote-backup/$timestamp | zstd -9 | age -r $(cat backup-public-key.txt) -o remote-backup/$timestamp.tar.zst.age +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/