Need help to rsynch the directory structure only excluding the
files from remote to local.
tariq.a.shaikh at gmail.com
Wed Apr 25 23:15:42 GMT 2007
I tried using the rsync like how you specified in your example and it
worked fine. But when I tried it between my UNIX box and a remote
server the command would just not complete and give any output
This is how I did it:
rsync -av --include '*/' --exclude '*' tashaikh at remotebox:/dw/etl/home/
In the above I need to copy the directory structure under log
directory on the remote box to the log directory on the local box.
Please let me know if I am doing anything wrong or if there is any
other method of doing this.
---------- Forwarded message ----------
From: Daniel.J.B... at Cummins.com
Date: Jun 18 2001, 5:38 am
Subject: RSync directory structure only
Thanks for the quick response Tim!!
I tried using the excludes you mentioned but it doesn't seem to work.
Every file still gets copied.
I also tried to have the remote machine execute a command to generate
file list but this didn't seem to work either:
rsync -av server:`find /dir1/dir2 -type d` dest
Anybody have any other ideas?
<tpot at valinux To:
Daniel.J.B... at Cummins.com
r... at lists.samba.org
Daniel.J.B... at Cummins.com writes:
> Is there a way to use rsync to replicate adirectorystructureonly and
> the files in thedirectorystructure?
rsync -av --include '*/' --exclude '*' source-dir dest-dir
More information about the rsync