Skip to content

Commit

Permalink
remote-backup: leave segments to avoid read permission
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed May 28, 2024
1 parent f107d75 commit e64d5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote-backup
Original file line number Diff line number Diff line change
Expand Up @@ -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 --skip-container-put --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 --leave-segments --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

0 comments on commit e64d5c5

Please sign in to comment.