split cloud archive admin user

This commit is contained in:
Daniel Micay 2024-05-28 05:37:32 -04:00
parent dd7d016204
commit f107d75a6f
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
/backup-public-key.txt
/backup/
/cloud-archive.sh
/cloud-archive-admin.sh
/lock
/nginx-tmp/
/static-production/

View File

@ -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
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