R-Sync issues, or possibly the Linux OS

Posted on 2007-07-19
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
    LVL 4

    Assisted Solution

    Good help is

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

    Author Comment

    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


    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

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
    The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
    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…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now