rsync question
Markus Schönhaber
ubuntu-users at schoenhaber.de
Wed Aug 30 10:36:23 UTC 2006
Paul Kaplan wrote:
> Is it possible to have rsync backup two or more directories with a single
> call?
Yes.
> How is that done?
rsync [options] <source dir 1> <source dir 2> ... <target dir>
AFAICT you won't be able to specify multiple source directories residing on
another machine (i. e. user at host:directory), though. But you may use
wildcards - which could be a workaround. Example:
rsync --recursive 'me at there:/some/path/foo*' /some/local/path
will connect to host "there" as user "me" and recursively sync the directories
/some/path/foo
/some/path/foo1
/some/path/foobar
but also the files
/some/path/foo2
/some/path/foobaz
For more info see
man rsync
Regards
mks
More information about the ubuntu-users
mailing list