elementar / docker-s3-volume

Docker container with a data volume from s3.
MIT License
268 stars 68 forks source link

Restore on period? #15

Open hongkongkiwi opened 4 years ago

hongkongkiwi commented 4 years ago

Can you add a flag for period restore?

I'm using the data volume as a read-only volume so I don't mind to blow it away and restore from the S3 bucket on a period. e.g. every 5 mins if there are changes.

lstellway commented 2 years ago

@hongkongkiwi

It looks like the script uses an undocumented BACKUP_INTERVAL environment variable, defaulting to 42 seconds (reference). I believe that should be able to give the functionality you are looking for.

Nevermind: Your comment is asking about "restore" (S3 --> local volume), not "backup" (local volume --> S3).