Results 1 to 7 of 7

Thread: Random, very odd behaviour crashing rsync

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Mammoth Lakes, CA
    Beans
    552
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Random, very odd behaviour crashing rsync

    I am still having trouble with this... I found that if I change the target dir to, say, a USB HDD, it does not give me the error, and rsync completes as it should. It has something to do with transferring over the network...

    Also, the target dir I am trying to transfer to is a symbolic link on my local system. Could that cause a problem?

    Any ideas at all would be greatly appreciated.

    Thanks,

    Dave
    ------------------------------------------------------

  2. #2
    Join Date
    Mar 2009
    Location
    Mammoth Lakes, CA
    Beans
    552
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Random, very odd behaviour crashing rsync

    hmm.. I may have fixed this issue. Instead of using the link, I used root@IPadress:/dir, it seems to be working much better, and it has deleted a few bad file names that never existed...

    I will let it run and mark thread as solved if it does work...
    ------------------------------------------------------

  3. #3
    Join Date
    Dec 2008
    Beans
    8

    Re: Random, very odd behaviour crashing rsync

    Hi,

    I am having the same issue but am using rsnapahot to backup our campus data by mounting Novell Volumes (GROAN), Windows Shares and our N7700Pro Thecus NAS on a single Ubuntu 9.10 server to do all the backup tasks.

    I think the problem is more than you suggest. I was doing the same by excluding directories causing the problem but I have been working on this for a month and am getting nowhere

    Here is my fstab entries and they are ok as far as I can tell:

    Code:
    /10.16.49.105/backups  /media/backups_primary cifs iocharset=utf8,credentials=/home/super/.smbcredentials,uid=1000,gid=1000,noperm 0 0
    //10.16.49.104/backups  /media/backups_secondary cifs iocharset=utf8,credentials=/home/super/.smbcredentials,uid=1000,gid=1000,noperm 0 0
    //10.16.48.33/dvdweekly /media/mesha   cifs iocharset=utf8,credentials=/home/super/.mesha-pass,uid=1000,gid=1000,noperm 0 0 
    10.16.48.32/super.lumen /media/lcc3 ncp uid=super,gid=super,mode=755,owner=super,A=10.16.48.32,passwdfile=/home/super/.lcc3-pass 0 0
    10.16.48.34/super.lumen /media/zenas2 ncp uid=super,gid=super,mode=755,owner=super,A=10.16.48.34,passwdfile=/home/super/.zenas2-pass 0 0
    10.16.48.47/super.lumen /media/sweb ncp uid=super,gid=super,mode=755,owner=super,A=10.16.48.47,passwdfile=/home/super/.sweb-pass 0 0

    And here is what rsnapashot calls:
    Code:
    /usr/bin/rsync -apl --delete --numeric-ids --relative --delete-excluded \
        --iconv=cp850,utf8 --exclude=autorun.inf --exclude=.DS_Store \
        --exclude=*.EAR --exclude=*.tmp --exclude=*.iso --exclude=*.exe \
        --exclude=*.lnk --exclude=*.ini --exclude=*.db --exclude=*AART* \
        --exclude=*GABBEDYA* --exclude=*STILLITL* \
        --link-dest=/media/backups_primary/hourly.1/staff/ \
        /media/sweb/STAFF/USERS /media/backups_primary/hourly.0/staff/
    I finally got one complete backup in the hourly.1 snapshot...but now the same set of files has caused this problem again today. Nothing has changed much as it's college break at the moment so no-one around

    I am at a loss...please help someone.

    Cheers,
    --
    Lou S

  4. #4
    Join Date
    Jan 2010
    Location
    CT USA
    Beans
    397
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Random, very odd behaviour crashing rsync

    With the repeating file in the message, my guess is that there is a symbolic link that is pointing back to itself via another link.

  5. #5
    Join Date
    Mar 2009
    Location
    Mammoth Lakes, CA
    Beans
    552
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Random, very odd behaviour crashing rsync

    Quote Originally Posted by jaccall View Post
    Hi,

    I am having the same issue but am using rsnapahot to backup our campus data by mounting Novell Volumes (GROAN), Windows Shares and our N7700Pro Thecus NAS on a single Ubuntu 9.10 server to do all the backup tasks.

    I think the problem is more than you suggest. I was doing the same by excluding directories causing the problem but I have been working on this for a month and am getting nowhere

    Here is my fstab entries and they are ok as far as I can tell:

    Code:
    /10.16.49.105/backups  /media/backups_primary cifs iocharset=utf8,credentials=/home/super/.smbcredentials,uid=1000,gid=1000,noperm 0 0
    //10.16.49.104/backups  /media/backups_secondary cifs iocharset=utf8,credentials=/home/super/.smbcredentials,uid=1000,gid=1000,noperm 0 0
    //10.16.48.33/dvdweekly /media/mesha   cifs iocharset=utf8,credentials=/home/super/.mesha-pass,uid=1000,gid=1000,noperm 0 0 
    10.16.48.32/super.lumen /media/lcc3 ncp uid=super,gid=super,mode=755,owner=super,A=10.16.48.32,passwdfile=/home/super/.lcc3-pass 0 0
    10.16.48.34/super.lumen /media/zenas2 ncp uid=super,gid=super,mode=755,owner=super,A=10.16.48.34,passwdfile=/home/super/.zenas2-pass 0 0
    10.16.48.47/super.lumen /media/sweb ncp uid=super,gid=super,mode=755,owner=super,A=10.16.48.47,passwdfile=/home/super/.sweb-pass 0 0

    And here is what rsnapashot calls:
    Code:
    /usr/bin/rsync -apl --delete --numeric-ids --relative --delete-excluded \
        --iconv=cp850,utf8 --exclude=autorun.inf --exclude=.DS_Store \
        --exclude=*.EAR --exclude=*.tmp --exclude=*.iso --exclude=*.exe \
        --exclude=*.lnk --exclude=*.ini --exclude=*.db --exclude=*AART* \
        --exclude=*GABBEDYA* --exclude=*STILLITL* \
        --link-dest=/media/backups_primary/hourly.1/staff/ \
        /media/sweb/STAFF/USERS /media/backups_primary/hourly.0/staff/
    I finally got one complete backup in the hourly.1 snapshot...but now the same set of files has caused this problem again today. Nothing has changed much as it's college break at the moment so no-one around

    I am at a loss...please help someone.

    Cheers,
    --
    Lou S
    yes, make sure you --exclude anything that would cause a loop. i.e. backing up /media, or any symbolic links to it.

    The issue is solved for me, I have run rsync a few different times, with different options, and it has not failed once.

    so instead of running it through a symbolic link like in my first post, I am running it like this:
    Code:
    rsync -auv --no-t --progress --stats --delete /home/dave/Music/ root@192.168.1.106:/mnt/HD_a2/Music
    So in your case (I am using your first entry in /etc/fstab), as your taget dir you would use
    Code:
    root@10.16.49.105:/backups/....
    instead of:

    Code:
    /media/backups_primary/hourly.0/staff/
    I hope that works for you. It seems to be working great for me.
    Last edited by switch10; April 16th, 2010 at 04:35 PM.
    ------------------------------------------------------

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •