mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-09-19 11:54:51 -04:00
use python-swiftclient to set backup expiry time
This eliminates the need for a scheduled job deleting the older backups.
This commit is contained in:
parent
ff13a0a335
commit
dd7d016204
3 changed files with 5 additions and 3 deletions
|
@ -12,6 +12,8 @@ cp -r /etc/matterbridge.toml remote-backup/$timestamp/matterbridge.toml
|
|||
cp -r /etc/synapse remote-backup/$timestamp/synapse
|
||||
cp -r /var/lib/mjolnir remote-backup/$timestamp/mjolnir
|
||||
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/
|
||||
|
||||
source cloud-archive.sh
|
||||
swift upload --segment-size 5368709122 -H "X-Delete-After: 5184000" --object-name $timestamp.tar.zst.age backup remote-backup/$timestamp.tar.zst.age
|
||||
|
||||
rm -rf remote-backup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue