0

I'd like to backup multiple S3 buckets into another S3 buckets. It seems like most backup tools only support S3 as a destination, but not as a source e.g. restic. The backup should support pruning, deduplication, not having to download the entire bucket to disk.

Also, I'm not using AWS, but a S3-compatible storage from another cloud provider.

TomTom
  • 129
  • 1
  • 1
  • 4

1 Answers1

0

You can use the aws cli sync command.

documentation

I don't think you can backup multiple buckets with one command, so you would need to use it multiple times for example:

aws s3 sync s3://sourcebucket1 s3://targetbucket
aws s3 sync s3://sourcebucket2 s3://targetbucket
...
Krenny
  • 1
  • 1
  • Unfortunately, this solution won't work for me because any accidental deletes will be propagated to backup. And if I were to sync it to a new folder, lots of redundant storage would be used. – TomTom Aug 02 '22 at 13:52