toniblyx / alfresco-backup-and-recovery-tool

Alfresco BART is a tool written in shell script on top of Duplicity to do Alfresco backups and restore from a local file system, FTP, SCP or Amazon S3.
Apache License 2.0
96 stars 48 forks source link

Backing up contentstore FROM S3 to S3 #45

Closed vipulswarup closed 5 years ago

vipulswarup commented 5 years ago

Hi - firstly - loving Alfresco BART. Now we have started using S3 for contentstore (rather than local disk) in Alfresco installations. I understand that BART only reads the local disk filesystem and backs that up to S3 (among other destinations).

My question is - can S3 be the Source and Destination (different buckets, of course)?

We are on Alfresco 5.2 Community Edition, on Ubuntu 16.04.

Thanks

toniblyx commented 5 years ago

Hi @vipulswarup, thanks for your kind words :)

Having your content store in an S3 bucket doesn't make sense to use BART (duplicity underneath) to do its backup, I would use S3 replication or object life cycle instead. Look at here https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html and https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html.

vipulswarup commented 5 years ago

Thanks Toni. I will look into the options you suggested, and share the solution that works best for us.

vipulswarup commented 5 years ago

Just for everyone's benefit. We have resolved the issue using Versioning on S3 buckets. https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html

The below tool is very useful for doing point in time restores of Versioned buckets: https://labs.madisoft.it/amazon-s3-point-in-time-restore/

toniblyx commented 5 years ago

Thanks @vipulswarup I forgot to mention versioning, we use is as well. I didn't know that tool and it is amazing, thanks for let us know!

toniblyx commented 5 years ago

Btw, if you play with that tool, please let me know how it performs for a large content store if you have the chance.