|
From: Matthew Lincoln on 7 May 2008 01:57 As I learned from the man page of rsync I can exclude a certain directory (trees) by using the --exclude option like in rsync .... --exclude=/proc .... But how do I exclude multiple directory (trees) at once in such a rsync command? The following does not work: rsync .... --exclude=/proc||/var||/dummy .... Same with "&&" instead of "||" Matthew
From: Wayne on 7 May 2008 02:41 Matthew Lincoln wrote: > As I learned from the man page of rsync I can exclude a certain directory (trees) > by using the --exclude option like in > > rsync .... --exclude=/proc .... > > But how do I exclude multiple directory (trees) at once in such a rsync command? > The following does not work: > > rsync .... --exclude=/proc||/var||/dummy .... > > Same with "&&" instead of "||" > > Matthew Use multiple --exclude=dir arguments. -Wayne
From: Nico Kadel-Garcia on 7 May 2008 02:46 On 7 May, 06:57, kmlincoln...(a)hotmail.com (Matthew Lincoln) wrote: > As I learned from the man page of rsync I can exclude a certain directory (trees) > by using the --exclude option like in > > rsync .... --exclude=/proc .... > > But how do I exclude multiple directory (trees) at once in such a rsync command? > The following does not work: > > rsync .... --exclude=/proc||/var||/dummy .... > > Same with "&&" instead of "||" > > Matthew Try 'rsync --exclude=/proc --exclude=/var --exclude=/dummy
From: Dave B on 7 May 2008 03:02 On Wednesday 7 May 2008 07:57, Matthew Lincoln wrote: > As I learned from the man page of rsync I can exclude a certain directory > (trees) by using the --exclude option like in > > rsync .... --exclude=/proc .... > > But how do I exclude multiple directory (trees) at once in such a rsync > command? The following does not work: > > rsync .... --exclude=/proc||/var||/dummy .... > > Same with "&&" instead of "||" You can repeat --exclude many times to specify multiple exclusions. Alternatively, you can use the --exclude-from option and put the names to be excluded in a file, one per line. Read man rsync for the details. -- D.
From: PM on 7 May 2008 03:49
Matthew Lincoln wrote: > As I learned from the man page of rsync I can exclude a certain directory (trees) > by using the --exclude option like in > > rsync .... --exclude=/proc .... > > But how do I exclude multiple directory (trees) at once in such a rsync command? > The following does not work: > > rsync .... --exclude=/proc||/var||/dummy .... > rsync .... --exclude=/proc --exclude=/var --exclude=/dummy |