rsync specified directory(ies)

Heiko Schlittermann hs at schlittermann.de
Tue Jun 17 07:57:41 MDT 2014


Hi,

Pletter Thomas <T.Pletter at rewe-group.at> (Di 17 Jun 2014 15:28:21 CEST):
> Hello,
> 
> 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 :
> 
> 000001
> 000001/00
> 000001/00/dir1
> 000001/00/dir1/file1
> 000001/00/dir1/file2
> 000001
> 000001/01
> 000001/01/dir1
> 000001/01/dir1/file1
> 000001/01/dir1/file2
> 
> 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?

-- 
Heiko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 847 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20140617/85a45a79/attachment.pgp>


More information about the rsync mailing list