NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

lifelessonline's avatar
Sep 29, 2011

Little help with rsync and Readynas Duo

Hi All,

I confess my self new to this rsync thing. So I wonder whether you can help me with the parameters a little bit.

Background info:
- I have a Reaydnas Duo (RND) up to date
- I have a Macbook Pro (MBP) up to date with Snow Leopard
- The RND is connected to an Airport Extreme by ethernet
- The MBP is connected to the same Airport Extreme by WiFi
- I can access all of my files quite well, no problems whatsoever, I use AFP but I could use SMB if necessary
- I have a folder in my MBP, let's say it is "/Users/lifelessonline/Pictures/"
- I also have a folder in my RND let's call it "/pictures/FromMBP/" this gets mounted to: "/Volumes/pictures/FromMBP/" in my MBP.
- At the moment I am not running the rsync server in the RND. I have read around here that it doesnt play well with the MBP.
- What I am aiming at is to do manual syncs I do not need a cron job, I do not mind doing this manually once in a while
- I do not mind mounting the RND folder manually either

Now, I would like to have a unidirectional sync from my MBP folder to the RND folder. However, I have been unsuccessful until now. Whenever I run an rsync between my local folder and the RND locally mounted folder, I actually end up copying all of the files and not only those that have been updated. The command I have been trying is:

rsync -nvzbCrlptD --list-only /Users/lifelessonline/Pictures /Volumes/pictures/FromMBP/

Notice that I am doing a dry run on this one. But in any case I get all the files copied instead of just the new ones or just the updated ones.

A little help on what the proper command is will be greatly appreciated.

Thanks!

3 Replies

Replies have been turned off for this discussion
  • Don't use SMB. I used to use the ReadyNAS rsync server with my old iMac on 10.5, and it worked pretty well. I'm not sure why people wouldn't recommend it. But I would not recommend using the old rsync client version that comes with Snow Leopard. Before you use rsync with any Mac (even locally) you need to make sure you've updated to a newer version and patched rsync to be compatible with HFS+ extended attributes. Luckily the instructions are not too hard to follow, check http://www.bombich.com/rsync.html out. I dug up the old command I used to use with 10.5, which I used to sync a local directory to the backup share on the ReadyNAS:

    rsync -rltEX --delete --progress --protect-args --size-only --rsync-path="usr/local/bin/rsync --fake-super" /local/path/to/directory readynas::backup/

    The --delete switch deletes any folders/files on the remote share which you've deleted in the local directory.
    The --progress switch gives you a progress dialog.
    I don't remember what --protect-args does :oops:
    The --size-only switch disregards time stamp differences on both machines and only uses file size to determine whether things changed
    The --rsync-path switch I was using because I never bothered to put the new rsync in my path. However, using --fake-super is important because it helps you store extended attributes you may not have been able to capture otherwise.

    But I don't think I was able to capture all of the extended attributes for every file, which is why I eventually stopped using it. For some files, extended attributes aren't very important. But in some cases, they are critical. Every Mac OS revision seems to use extended attributes for more and more, so be sure to have rsync log errors and test to make sure those rsync'd files work right. Long story short - if you're really just using rsync as a backup, consider Time Machine. You can use the Time Machine Editor app to modify the default interval, which is what I do on my MacBook Pro.
  • Thanks so much! I will give this a try hopefully this weekend.
    I also have a Time Machine that does my hourly back up, but I want to have my pictures accessible through my NAS.

    Thanks again for the help!
  • It worked! only until now I had a chance to try it (downloading xcode took forever).

    However, I had to get rid of the "--fake-super" because it was giving me far too many warnings. In any case, things seem to be working, thanks again, ig-88.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More