How long do uploaded files stay in the tmp folder in Linux Ubuntu?

Posted by Jean-Nicolas Boulay Desjardins on Server Fault See other posts from Server Fault or by Jean-Nicolas Boulay Desjardins
Published on 2012-12-05T09:09:24Z Indexed on 2012/12/05 11:08 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

I am building a web application where my users will be able to upload files. After the files are uploaded I need to send the files to two other servers, and after they will be deleted from the server where they were just uploaded to.

I am wandering is it a good I idea to keep the uploaded files in the tmp/ folder the time the uploaded files are sent to the other two servers or should I move them to another folder incase they get deleted? I am also wandering because I would like to know if I have to build a cron script to get rid of the files that have been transfered to the other servers so that I get my disk space back.

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu