Hi dp members, I am trying to make an archive of some of my files to move off my server, there is about 140gb in the dir, with over 9000 files listed inside. I would like to know if there is any possible way to add the files to an archive, and once added, delete the source file. I cant just simple add these to an archive as i only have a 250gb harddrive and ive already used about 180gb. So i need some way of, adding the files to a tar (or other archive, which ever has best compression) and then delete the source file before moving on to the next file would this be possible with some kind of bash script? all my files are named, 1-5000.txt and then i have an img directory with the same layout of files, 1-5000.jpg Thank you all for your help. Shaun
I just hope someone can help me with this because i haven't got long to get the files from my server I havent a clue on how to write bash scripts
I cant make them into one file without deleting the source as they get added or i will run out of diskspace. and I want to put them into one archive before i move them as I will have to use a download manager on a 140gb file I wont be transfering them from server to server, as i need so do some editing to the contents before they go live again. thanks
Hey Something like this: tar -cf archive.tar folder --remove-files Code (markup): archive.tar is the tarfile you're producing folder is the folder you're archiving. Remember, use with caution, but Rep would be appreciated Jay
That is a lot of data...I sure hope you arent downloading the archived file from the net....you want an gigabit LAN to transfer ideally.