Moving files into an archive
Hi,
Getting my hands dirty with the Linux command line but have hit a bit of a wall. My dilemma is that my hosting server is fairly limited with disk space and I keep filling it up with a PHP script that grabs content. What I am trying to do is *move* a few hundred files in a subdirectory into one compressed file. Is there any way of doing this so that it actually deletes each file immediately after it is added to the archive? Otherwise I go over my disk quota during the process and can't write the archive file to disk. Thanks very much for your time. |
You might be able to build a loop in a script to do that.
The first instruction selects a file name and passes the name to tar. tar appends the file to the archive. the third instruction deletes the file loop to next name. |
Good suggestion
Sounds like a good idea... I might even be able to do it with PHP even!
Thanks for the idea. |
All times are GMT -5. The time now is 07:46 AM. |