mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-08-09 06:42:32 -04:00
split cloud archive admin user
This commit is contained in:
parent
dd7d016204
commit
f107d75a6f
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
||||||
/backup-public-key.txt
|
/backup-public-key.txt
|
||||||
/backup/
|
/backup/
|
||||||
/cloud-archive.sh
|
/cloud-archive.sh
|
||||||
|
/cloud-archive-admin.sh
|
||||||
/lock
|
/lock
|
||||||
/nginx-tmp/
|
/nginx-tmp/
|
||||||
/static-production/
|
/static-production/
|
||||||
|
|
|
@ -14,6 +14,6 @@ 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
|
tar -cC remote-backup $timestamp | zstd -9 | age -r $(cat backup-public-key.txt) -o remote-backup/$timestamp.tar.zst.age
|
||||||
|
|
||||||
source cloud-archive.sh
|
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
|
swift upload --skip-container-put --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
|
rm -rf remote-backup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue