Results 1 to 5 of 5

Thread: Rsync DOESN'T Preserve File Owner & Permission - Using Automounted NTFS backup drive

  1. #1
    Join Date
    Jul 2009
    Beans
    571
    Distro
    Ubuntu 10.04 Lucid Lynx

    Rsync DOESN'T Preserve File Owner & Permission - Using Automounted NTFS backup drive

    Hi, this is my machine:

    ext4:
    1x 80gb - /boot, /swap, /(root) - sda
    1x 80gb - /home - sdb

    ntfs:
    1x 250gb - /backups - sdc

    1. First of all, I automount sdc /backups via /etc/fstab like this:

    Code:
    /dev/disk/by-label/backups /media/backups ntfs defaults,uid=1000 0 2
    2. Second I use a rsync to backup my /boot/ /(root) and /home

    For example:

    Code:
    rsync --delete -avz /boot /media/backups/boot/
    When I check sdc (my ntfs backup drive), all files in there are 777, whereas it should be 755, and sometimes the owner is me, whereas it should be ROOT.

    As an experiment, I backed up my files NOT in sdc (my ntfs backup drive), but in my /home folder instead, RESULT: every thing is OK, and it preserved file owner & permission!

    Is there something I'm missing here? Is there something I don't understand?

    Please help because I'm learning to BACKUP my system. Thanks for reading.
    Last edited by AlexanderDGreat; September 5th, 2010 at 12:13 PM.
    It's OK, everything we know will become obsolete at some time.

  2. #2
    Join Date
    May 2010
    Beans
    171

    Re: Rsync DOESN'T Preserve File Owner & Permission - Using Automounted NTFS backup dr

    NTFS doesn't use UNIX permissions. This is your problem.

  3. #3
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Rsync DOESN'T Preserve File Owner & Permission - Using Automounted NTFS backup dr

    Also, rsync has options -p and -t to preserve perms and file times, which are useful for backups. But won't help with NTFS anyway.

    And you mounted the NTFS drive with uid=1000 - which I believe makes the default ownership "you" since 1000 is the uid of the first user on the system.
    Last edited by BkkBonanza; September 5th, 2010 at 04:30 PM.

  4. #4
    Join Date
    Jul 2009
    Beans
    571
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Rsync DOESN'T Preserve File Owner & Permission - Using Automounted NTFS backup dr

    Thank you man, bodhi also has the same answer:

    http://ubuntuforums.org/showthread.php?t=283131&page=19

    Great community.
    It's OK, everything we know will become obsolete at some time.

  5. #5
    Join Date
    Jul 2009
    Beans
    571
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Rsync DOESN'T Preserve File Owner & Permission - Using Automounted NTFS backup dr

    @BkkBonaza - Thank you for answering, my problem is now solved.

    I'm using CRON and RSYNC to backup my files.

    Heliode's guide on backing up files with TAR works as well. I've restored my computer 10x already, using experimental cron, rsync, and tar. No fancy GUI, and I'm just a beginner.

    Thanks man. Have a nice day.
    It's OK, everything we know will become obsolete at some time.

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
  •