-
Notifications
You must be signed in to change notification settings - Fork 56
Dropbox daily monthly #128
base: master
Are you sure you want to change the base?
Conversation
Dropbox will have 2 directory’s one for monthly and one for daily updates each folder has a limit of backups. If the current date is the first day of the month the backup will upload to the monthly folder if not it will end up in the daily backup folder. When the upload has finished it will check to see if the folder has reached the file limit if so it will delete the oldest file.
Dropbox daily monthly
Hi! Bumped into this issue recently. The problem is Travis is using a global phpunit and it is not working the same as before. Have a look at kompisbyran/Kompisbyran#190 and see if you can solve it this way in this repo too. |
Hey @mctdev-marius ! Thanks for this PR, this is quite interesting! You guys always have nice ideas that I had never thought about! 😃 What about just specifying the #every day
1 1 * * * SYMFONY__REMOTE__PATH=/normal/path php app/console --env=prod dizda:backup:start >/dev/null 2>&1
#first day of the month
1 1 1 * * SYMFONY__REMOTE__PATH=/different/path php app/console --env=prod dizda:backup:start >/dev/null 2>&1 More details here http://symfony.com/doc/master/configuration/external_parameters.html Then you can add more crons to delete oldest files in both directories if more than X items: http://stackoverflow.com/questions/25785/delete-all-but-the-most-recent-x-files-in-bash What do you guys think? |
Hello @dizda , What it dose is uploads the backup archive to different DropBox directory based on the day of month, then it checks the dropbox file list to see if it needs to delete files based on the settings for DropboxSDK. I normally have a 5 files for the daily and 2 for monthly. Please let me know if i'm missing the long term problems that can complicate a already grate bundle (yours). |
Yeah sorry, I didn't get than you were talking about removing remote files on the cloud storage rather than the ones on your local... So I might be agree on the utility to remove files if the total number is higher than a specified amount. |
Yes i agree, the directory and the limit number based on the folder they end up in can be set via crons so you can make of whit out extra code to decide where to upload the created backup. Let's see if i'm the only one needing this running this way or if it can bee useful to others. |
Dropbox will have 2 directory’s one for monthly and one for daily
updates each folder has a limit of backups.
If the current date is the first day of the month the backup will upload
to the monthly folder if not it will end up in the daily backup folder.
When the upload has finished it will check to see if the folder has
reached the file limit if so it will delete the oldest file.