-
Notifications
You must be signed in to change notification settings - Fork 577
Description
Hi @gcgarner
I think this was discussed over in Discord chat, it would be ideal to have date/time appended to the Dropbox backup file to avoid it being overwritten each time.
PS - I'm sure you have a solution so feel free to ignore the below ramblings:
Surprisingly it raises some issues in my inexperienced brain:
I had a look into docker_backup.sh, it would be simple enough to rename the file before uploading; sudo cp -a ~/IOTstack/backups/docker.tar.gz "backup-$(date +"%Y-%m-%d-%H%M%S").tar.gz"
Or even better create the timestamped name when compressing the files.
But how would the script know the filename to upload as it keeps changing with the time? Maybe just appending the date which would fix this issue. And how to remove the file from the backups folder after uploading, to save space? Maybe some thing like sudo rm backup*
And then on the Dropbox side of things, if doing daily backups this will add up to a lot of space over time.
Leaving it as it is solves all of the above issue, as it just overwrites with the latest copy. But if there is an issue and 11pm swings by, your last good backup is overwritten. However Dropbox does have a 30day 'rewind' feature so that could be used to recover a recent backup.
I'll be interested to see how this could be approached, or if it's not worth implementing.
Thanks!