peachplc
asked on
R-Sync issues, or possibly the Linux OS
Hi
I dont know if this an R-Sync issue or a linux OS issue.
I have a server that runs R-Sync, effectivly making a copy of my main data server.
I have had a problem with it recently, but im not sure if its to do with permissions not being correct or the schedule i have set up in the crontab scheduler.
I wanted to exclude more than one folder when backing up my data, usually i use --exclude "folder name" now i want to exclude more folders, how is this done, do i do it like this
--exclude "folder name" --exclude "folder name 2" --exclude "folder name 3"
or do I do it like this
--exclude "folder name" "folder name 2" "folder name 3"
I am really lost with it, all help rewarded.
As for the OS, my ssh link to the data server no longer works and i cant delete it, i have made another one and named it "connection 2" instead of "connection", which is the faulty one, could this be the cause of my problems with R-Sync or just a coinsidence.
I run this on Fedora Core 5, all updated, and R-Sync 2.8 i think, not entirely sure but it was the latest version about 5 months ago
Please help
I dont know if this an R-Sync issue or a linux OS issue.
I have a server that runs R-Sync, effectivly making a copy of my main data server.
I have had a problem with it recently, but im not sure if its to do with permissions not being correct or the schedule i have set up in the crontab scheduler.
I wanted to exclude more than one folder when backing up my data, usually i use --exclude "folder name" now i want to exclude more folders, how is this done, do i do it like this
--exclude "folder name" --exclude "folder name 2" --exclude "folder name 3"
or do I do it like this
--exclude "folder name" "folder name 2" "folder name 3"
I am really lost with it, all help rewarded.
As for the OS, my ssh link to the data server no longer works and i cant delete it, i have made another one and named it "connection 2" instead of "connection", which is the faulty one, could this be the cause of my problems with R-Sync or just a coinsidence.
I run this on Fedora Core 5, all updated, and R-Sync 2.8 i think, not entirely sure but it was the latest version about 5 months ago
Please help
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, I will try that on Monday and see how it goes, I should know by Wednesday if its worked or not as I need to sync all the data, it takes an age
It s ok dude just take your time : )
but may I suggest you to create a dummy directory in your, say, home and create 2-3 simple files and 3-4 directories then copy these dummy files in the directory too.
You will then try to sync it versus your /tmp/home. It will al sogive you a chance to customize several options as you work thrug them. I'll also suggest you to increase your verbosity level with -vvv switch
and see what rsync does. After each time you can clear /tmp/home so that you'll be sure what your script does before going fot real. In fact I am sure it will be a bit hard to tell if some directory is coped or not if you have lots of small files.
Cheers,
K.
but may I suggest you to create a dummy directory in your, say, home and create 2-3 simple files and 3-4 directories then copy these dummy files in the directory too.
You will then try to sync it versus your /tmp/home. It will al sogive you a chance to customize several options as you work thrug them. I'll also suggest you to increase your verbosity level with -vvv switch
and see what rsync does. After each time you can clear /tmp/home so that you'll be sure what your script does before going fot real. In fact I am sure it will be a bit hard to tell if some directory is coped or not if you have lots of small files.
Cheers,
K.
ASKER
it does say i can use the --exclude "folder" but it doesnt go into detail specifying what needs to be done for multiple folder excludes.
Also r-sync must be able to do a one way sync ie data server to backup server, but how can i then get rid of any folders on my rsync server that might have been deleted on my data server, can it do that?