rsync specified directory(ies)
hs at schlittermann.de
Tue Jun 17 07:57:41 MDT 2014
Pletter Thomas <T.Pletter at rewe-group.at> (Di 17 Jun 2014 15:28:21 CEST):
> i try to copy a specified directory and the according folders and files below to a remote host.
> cd /dir
> /usr/bin/rsync -ravz -e ssh --include='*/' --include='*/00/*/*' --exclude='*' . remote_host:/tmp
> i want to copy in these example the directory "00" and the according folders and files below.
> the structure of the directory is defined by a software and only directory "00" is variable.
> the structure of the directories are :
> is it possible with rsync ? i tried several options and gets no result
Probably I do not understand, but if I do, then
rsync -a 00001/00 remote_host:/tmp/
is not that what you're looking for?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 847 bytes
Desc: Digital signature
More information about the rsync