diff --git a/remote-backup b/remote-backup index 50a3a600..0083d595 100755 --- a/remote-backup +++ b/remote-backup @@ -12,6 +12,7 @@ sqlite3 samples.db ".backup remote-backup/$timestamp/samples.db" 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 --leave-segments --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-$(openssl rand -hex 32).tar.zst.age backup remote-backup/$timestamp.tar.zst.age rm -rf remote-backup