rsync from MAC to backup disk to use in windows

Discussion in 'macOS' started by lakshmik, Jan 9, 2013.

  1. lakshmik macrumors newbie

    Jan 9, 2013
    I am trying to backup from my MAC laptop to backup disk to use in windows laptop using below command,

    rsync -vaPh --chmod=ugo+r,ug+w,ugo+X /Users/lakshmi/ /Volumes/BACKUP

    The rsync is supposed to copy all files for the first time and second time onwards it has to only copy modified files, but it is doing complete backup second time too. This is because the rsync treats each file as new one due to different permission on BACKUP disc.

    Could anybody suggest how to overcome this problem.

  2. switon macrumors 6502a

    Sep 10, 2012
    RE: rsync...

    Hi lakshmik,

    Yes, I believe you are right, rsync thinks the files are new because they differ by permissions from the old ones already rsync-ed. These files are different, and I think this is proper behavior on rsync's part. But I think you can get around this by not using the "-a" switch on rsync, that is, do not require rsync to preserve the group and owner permissions which "-a" does automatically. You can leave out the permissions preserving from subsequent rsyncs by using the individual switches instead of the catchall "-a" switch.

  3. lakshmik thread starter macrumors newbie

    Jan 9, 2013
    rsync from MAC to backup disk to use in windows


    Thanks for the response. If it does not preserve the ownership, then wouldnt there be issues when I try to copy it to windows computer. In windows the owner is different from MAC computer.
  4. switon, Jan 9, 2013
    Last edited: Jan 9, 2013

    switon macrumors 6502a

    Sep 10, 2012
    RE: preserve permissions...


    What I meant is to change the ownership and group permissions on the first rsync, but then on subsequent rsyncs do not preserve the permissions (i.e., don't use the -a switch --- see the "man rsync" manpage for documentation).


    P.S. I don't know whether this will get around your problem or not, but it is worth a try. You might also think about having the same user on both Max OS and Windows, although I'm not familiar enough with Windows to know how to do that, but in the Linux world it is easy to do.
  5. old-wiz macrumors G3

    Mar 26, 2008
    West Suburban Boston Ma
    If you are planning to backup to use in windows in the sense of booting the backup on a windows machine you will be disappointed. there is more to the issue than just copying the files.

Share This Page