Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Create cron or similar to delete old zip files #57

Closed
jtreminio opened this issue Jun 9, 2013 · 3 comments
Closed

Create cron or similar to delete old zip files #57

jtreminio opened this issue Jun 9, 2013 · 3 comments
Labels

Comments

@jtreminio
Copy link
Member

We recently ran out of space on /tmp

Either need to create a cron job to go through every day and remove older files, or we need to not even create the zip file and have it all on RAM?

@frastel
Copy link
Contributor

frastel commented Jun 10, 2013

Mmh I don' think we could handle all the archiving stuff in RAM (besides you have a RAM disc). I would try to use the terminate event http://silex.sensiolabs.org/api/Silex/Application.html#method_terminate to delete old zip archives. Searching old files with the Symfony Finder component would help a bit.
I am no friend of cronjobs and I prefer self-cleaning apps.

@gwagner
Copy link

gwagner commented Jun 28, 2013

There is a Puppet function alled Tidy. Point it at a folder and tell it to delete any folders / files that are too old. http://docs.puppetlabs.com/references/latest/type.html#tidy

@frastel
Copy link
Contributor

frastel commented Jul 7, 2013

The tmp sys folder is deleted now after archive generation.

Still todo: The archive itself has to be deleted after downloading.

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

No branches or pull requests

3 participants