mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-12-21 21:55:23 -05:00
move systemd units to subdirectory
This commit is contained in:
parent
36d1b69e6b
commit
db209e53b4
@ -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/
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user