Skip to content

local temporary files not cleaned? #35

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

Closed
geomagilles opened this issue May 11, 2015 · 2 comments
Closed

local temporary files not cleaned? #35

geomagilles opened this issue May 11, 2015 · 2 comments

Comments

@geomagilles
Copy link

Hi, thanks for your package. I use it to store my backup files on S3. But unfortunately, temporary files are still created on /tmp and not deleted. This quickly saturate my filesystem :(

@freekmurze
Copy link
Member

Normally the OS takes care of cleaning that directory. On Ubuntu it is cleared on every reboot by default. You can also manually specify how frequently it should be cleared.

@groenewege
Copy link

Hi, I encountered the same issue.
Here is an example console task I added to my app/Console/Kernel.php file to clean up the temporary files.

$schedule->exec("find /tmp -mtime +2 -name 'laravel-backup*' -and -exec rm {} ';'")->daily();

This wil remove temporary files from the /tmp directory that are older than 2 days and whose file name starts with "laravel-backup".

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

No branches or pull requests

3 participants