PDA

View Full Version : Making backups. (PLEASE HELP)


Al Capone
09-11-2006, 04:22 PM
There are two folders in my server that I backup frequently but one of these folders contains 2 directories that contain a lot of files and is very big. It takes 20 hours to make backups due to these 2 folders that I don't even need to backup as changes never take places in them and these directories and there files are already saved locally on my hard drive as well.

So I already know this will back up the two folders:
tar -cvvf myftp.tar url.com/ url2.com/
I know the above backs up:
"url1.com/" folder and "url2.com/" folder

I want the code to backup the following:
Everything in url1.com EXCEPT: "url1.com/files" and “url1.com/photos” and then Everything in "url2.com/"

Hopefully this makes sense, and any help on this would be a life saver and I would really appreciate it, I would save so much electricity with a code for this, right now backups take about 20 hours :eek: . Thanks.

Al Capone
09-11-2006, 05:43 PM
I did some reading up

It takes about 20 hours to try and see if it works and if doesn't I'll have to come back in 20 hours, so could you tell me if you think this would work?

tar -cvvf myftp.tar url1.com/ --exclude=url1.com/files --exclude=url1.com/photos url2.com/
Do you think the code above will do this:
Everything in url1.com EXCEPT: "url1.com/files" and “url1.com/photos” and then Everything in "url2.com/"

GJay
09-11-2006, 08:20 PM
take a look at rdiff:
http://www.nongnu.org/rdiff-backup/

Al Capone
09-12-2006, 05:27 AM
i dont really want to use a script i like using putty much more, could you tell me if my post code would work?