Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, Here is what I am doing, I am using the following command to sync a laptop and desktop... rsync -arvuz /home/user/mystuff/ laptop:/home/user/ What I would like to do ...
  1. #1
    Linux Newbie AboveNBeyond's Avatar
    Join Date
    Mar 2007
    Posts
    120

    rsync help!!

    Hello all,
    Here is what I am doing, I am using the following command to sync a laptop and desktop...
    rsync -arvuz /home/user/mystuff/ laptop:/home/user/
    What I would like to do is sync all files *except* 1 directory.

    How can I do that?

    I am imagining something like this...

    rsync -arvuz /home/user/ --ignore=/home/user/Music laptop:/home/user/

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I haven't tested this out, but take a look at the --exclude and --filter directives in the rsync(1) manpages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...