I’ve got a couple of databases that I like to backup nightly and upload to my Dropbox. Key to this process is Andrea Fabrizi’s excellent Dropbox Uploader script. Dropbox Uploader is a BASH script that gives me Dropbox upload, download, list, and delete capabilities. Until now, the script I’ve used didn’t delete my old files in my Dropbox folder.
This week I’ve scripted cleanup inside my Dropbox folder. The way it works is by comparing the backup files on the server and then deleting any extra files inside my Dropbox. My code is below. If you have any suggestions for improving my script, please share them in the comments.
NOTE: My script assumes that you’ve moved
dropbox_uploader inside a directory found in your
Hi there. I have found your script to delete files older than xx days in dropbox using the dropbox_uploader script, but I cannot get it to delete files in drop. I have modify your script to download backup zip files. The script uploads the files to dropbox, but it doesn’t delete old files in dropbox. No errors or any line that says it is deleting……. When you have the time, can you take a look at the code? Thank you.