We are taking a backup of our tool's home directories and configuration within same S3 bucket separating by directory names. We have versioning enabled on S3 bucket. With the fear of loosing important files in S3 backup as well, if something goes wrong with our distributed file system and scheduled S3 sync job runs - We didn't enable --delete
option during s3 sync.
Now, I wonder -
If something goes wrong with the local backups and we realise - let's say 4 days after - and we need to restore 4 days old files within just one directory
of S3 bucket, how I can achieve that?
Also, if you can answer -
Since we didn't enable --delete
option, restore will also restore all files which were deleted or not present locally - which are no longer required - How can we avoid that during restore?