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.
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.