Results 1 to 5 of 5

Thread: Rsync Corrupted file

  1. #1
    Join Date
    Aug 2010
    Beans
    42

    Rsync Corrupted file

    Hello,
    I have a linux box setup that's running ubuntu 8.04 I believe. And I have it setup so it will perform it's own backups every night using Rsync. I just noticed that it's been corrupting .PNG files, meaning that the image still opens but half of the image is cut off. The backups do not go over the network. The command I use is:

    rsync -avS --delete /storage/b/cur/ $BACKUPQUARTERLY/$TODAY/b >> $LOGFILE

    Any and all suggestions will be greatly appreciated.

    Thank You!

  2. #2
    Join Date
    Feb 2005
    Location
    Oregon
    Beans
    496
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Rsync Corrupted file

    I use rsync heavily, and never had corruption. But I've never used the sparse option (-S), and a quick google search for "rsync sparse corruption" returns lots of results, so I'd suggest taking the S out.

    Edit: Which filesystem is the destination?
    Last edited by dtfinch; July 26th, 2011 at 06:40 PM.

  3. #3
    Join Date
    Aug 2010
    Beans
    42

    Re: Rsync Corrupted file

    Quote Originally Posted by dtfinch View Post
    I use rsync heavily, and never had corruption. But I've never used the sparse option (-S), and a quick google search for "rsync sparse corruption" returns lots of results, so I'd suggest taking the S out.

    Edit: Which filesystem is the destination?
    The same server but it goes from filesystem b to filesystem e. Both are linux filesystems according to fdisk.

  4. #4
    Join Date
    Aug 2010
    Beans
    42

    Re: Rsync Corrupted file

    Quote Originally Posted by Jay89 View Post
    The same server but it goes from filesystem b to filesystem e. Both are linux filesystems according to fdisk.
    I just checked one of the affected files and it doesn't seem to be a sparse file. So I did remove the -S option but still no luck...

  5. #5
    Join Date
    Jun 2011
    Beans
    417
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Rsync Corrupted file

    Maybe you should generate at first checksums of your files, rsync your files and compare later the checksums of both systems. Another idea is to compile your own static rsync binary and try your backup with the compiled one. You will also find information that --sparse and --inplace can generate corrupted files.

Tags for this Thread

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
  •