Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] paths and rsync
Date: Sun, 14 Aug 2005 14:32:48
Message-Id: 20050814152737.0fe082bf@hactar.digimed.co.uk
In Reply to: Re: [gentoo-user] paths and rsync by Christoph Gysin
1 On Sun, 14 Aug 2005 12:03:02 +0200, Christoph Gysin wrote:
2
3 > > Anybody knows how to specify more than one path with rsync using the
4 > > same first part (for the host) ? something like
5 > > pupeno@myserver:[/home|/var]
6 >
7 > You could use the bash for expansion of the paths:
8 >
9 > $ rsync [options] pupeno@myserver:{/home,/var} $DEST
10
11 You could also use the --files-from option
12
13 echo home var | rsync --files-from - [options] pupeno@myserver:/ $DEST
14
15 You could also put the directories in a file instead of including them on
16 the command line each time
17
18 echo -e "home\nvar" >foo
19 rsync --files-from foo [options] pupeno@myserver:/ $DEST
20
21
22 --
23 Neil Bothwick
24
25 Committee (noun): A group of people spending hours taking minutes