[Last Call] Learn how to a build a cloud-first strategyRegister Now


R-Sync issues, or possibly the Linux OS

Posted on 2007-07-19
Medium Priority
Last Modified: 2013-12-06

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
Question by:peachplc
  • 2
  • 2

Assisted Solution

shoaibbhatti007 earned 400 total points
ID: 19529807
Good help is

Pls check..If you find some problem, pls write

Author Comment

ID: 19532981
i have the r-sync manual, its a little hard to comprihend though.

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?
LVL 30

Accepted Solution

Kerem ERSOY earned 1600 total points
ID: 19533856

Try to use:

-W --exclude='**folder/' --exclude '**folder1/'

You need to end any folder name with a '/' otherwise rsync will think it is a file. and precede your expression with "**" it will tell rsync to continue even if a slash is encountered. Normally rsync will stop evaluating when it encounters a '/'. Dont forget to add "-W" among your parameters it will ebnable whole files and filters.


Author Comment

ID: 19534912
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
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 19534994
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.


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question