Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - automatically delete Dropbox files older than X days #23

Open
erikszewczyk opened this issue Sep 12, 2017 · 10 comments
Open

Comments

@erikszewczyk
Copy link

Hey Geraldo-

It would be really helpful to have a simple config parameter (and associated script) to automatically delete files off Dropbox after X days so we don't run out of storage space.

I've been trying to figure this out for the last half hour, and am thinking I could do this through a script in on_movie_end.sh - but my bash scripting skills are pretty weak and I haven't figured it out yet :)

Erik
https://www.freelearner.how

@geraldoramos
Copy link
Owner

Hi Erik,

I fixed this in the last release. It is now deleting files after saving to Dropbox automatically. Let me know if this is not working for you!

There are no parameters for deletion though, you can't leave the file there for a specific amount of time, it just removes it after the Dropbox operation.

I'm interested in implementing other storage options in the future.

Regards,

Geraldo

@erikszewczyk
Copy link
Author

Hey Geraldo-

Perhaps I wasnt clear enough, I meant deleting the files FROM Dropbox (not from the local storage, which yes that is working fine for me).

The problem I'm trying to avoid is running out of cloud storage (and generally there is no need to keep the video around for an extended period of time anyway).

Make sense?

Erik

@geraldoramos
Copy link
Owner

Ohhhh, Thanks for clarifying @erikszewczyk. I'm sorry for the misunderstanding.

I found this SO question that provides a solution to do it, using the same tool I'm using for dropbox integration (Dropbox_uploader)
https://stackoverflow.com/questions/41098278/delete-files-after-certain-date-with-dropbox-uploader-sh

I will see if it works well and if it's possible to integrate that into the current workflow.

@geraldoramos
Copy link
Owner

Also, sorry for the late response, I completely missed it!

@erikszewczyk
Copy link
Author

Thanks for looking into this, I also found the following:
andreafabrizi/Dropbox-Uploader#186

I spent over an hour the other day trying to get it working using the above approach, however I couldn't get the grep/sed to format the output cleanly enough for dropbox_uploader.sh delete to accept.

Hopefully this can be solved by someone with a bit more experience than I :)

Erik

@geraldoramos
Copy link
Owner

I will try my best, far from being experienced here =D

@consciousweb
Copy link

Any update here? I would really like this option as well, or preferably, an option to just save files to a new folder every day.

@renschler
Copy link

renschler commented Jan 16, 2019

I set up a rule in integromat to automate this process.

It runs once a day and checks if there are any files older than 3 days in the specified pigeon folder, if so it deletes them.

You can create your own rules pretty easily, but I attached a screenshot of my setup and the blueprint.json file you can use to copy it.

integromate_dropbox_pigeon.zip

@romquenin
Copy link

romquenin commented Mar 30, 2019

Thanks for sharing @renschler ! I just discovered integromat thanks to you.

@opeawo
Copy link

opeawo commented Mar 19, 2021

FileQL lets you create auto-delete rules based on any of these criteria: number of days, file type, size and name-suffix. It should work for you as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants