Hi, Pletter Thomas <t.plet...@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
signature.asc
Description: Digital signature
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html