Rsync - command line

Discussion in 'all things UNIX' started by vasa1, Sep 25, 2011.

Thread Status:
Not open for further replies.
  1. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,152
    This is what I'm using:
    Code:
    rsync -avrs --modify-window=1 --delete --files-from=/home/vasa1/Desktop/Include / /media/EC82B9BF82B98E98/Testing/ > rsync.log
    The --modify-windows=1 is suggested because of time issues when dealing with different file formats. I'm syncing from ext3 to NTFS or FAT32.
    (edit: --modify-windows seems relevant to FAT32)
    And "Include" is a file containing the list of files/folders I want to sync.

    Any comments (not relating to using grsync instead of CLI) will be most appreciated!
     
    Last edited: Sep 25, 2011
  2. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,136
    Have you tried deja dup btw?
     
  3. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,152
    No. I want to learn how to use rsync properly first.
     
  4. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,136

    Good move, I am too lazy and use the GUI Deja Dup. :D
     
  5. tlu

    tlu Guest

    Normally, you can skip the -r option as it is already contained in -a. But as you also use --files-from, explicitly adding -r is correct if you want the recursive option.

    Regarding -s, man rsync says:
    I'm not sure if you really need it but it shouldn't hurt, either ;)

    And --modify-windows=1 makes sense in your case according to man rsync:
    --delete tells rsync to delete any files on the receiving side that aren't on the sending side. This can be problematic. man rsync recommends to use it with the --dry-run option first to see what files are going to be deleted.
     
    Last edited by a moderator: Sep 26, 2011
  6. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,152
    Thanks for your comments! I left a bit out!!!

    But yes, I do have the -n option and go through rsync.log before doing the real thing...

    Just in case someone thinks I figured out stuff myself, I got help here:
    http://www.justlinux.com/forum/showpost.php?p=848823&postcount=5 (Parcival's post solving (IMO) Wook's problem)
    and papibe's responses to me here
    http://ubuntuforums.org/showthread.php?p=11283190#post11283190
     
  7. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,152
Loading...
Thread Status:
Not open for further replies.