Re: Excluding folders in rsync command?



is it possible to exclude directories/folders from a rsync command
please? i know you can do files using a wildcard like *.avi, but is it
possible to exclude e.g. /home/boztu/videos ?

You can use the --exclude option if you want to specifiy the directory from the
commandline. If you want to do it in a filter file just use the name of the
directory and prepend it with a minus. Like so

+ .rsync
- .rsync/logs

HTH

Grx HdV


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/201201152302.01207.hdv.jadev@xxxxxxxxx



Relevant Pages

  • Re: Excluding folders in rsync command?
    ... i know you can do files using a wildcard like *.avi, ... possible to exclude e.g. /home/boztu/videos? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Excluding folders in rsync command?
    ... i know you can do files using a wildcard like *.avi, ... possible to exclude e.g. /home/boztu/videos? ... man rsync? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: ls and globbing and full pathnames
    ... that the wildcard path will automatically *exclude* any ... and all files/directories whose names begin with a dot, ... It'll also fail if the glob expands to too many arguments. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: video editing of digicam avi files
    ... I am trying to find a method to make an mpeg movie from a number of avi ... The original videos are at 15 fps and I am not too ... Give a man a fish, and he eats for a day. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: avi to dvd
    ... command line for this] avi to dvd converter? ... I guess I'll go for Devede than. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)