Tariq Shaikh
2007-Apr-25 23:52 UTC
copying directory structure only (not the files) from a remote UNIX box using rsync
Hi, I am trying to copy the directory structure only from the remote UNIX box onto the box from which Im executing the rsync. This is what I tried: rsync -av --include '*/' --exclude '*' tashaikh@remotebox:/dw/etl/ home/ prod/log/ /export/home/tashaikh/auto/log The above keeps on executing without returning any result. I have tried to copy directory structure from another directory on the same machine itself . The one shown below works: rsync -av --include '*/' --exclude '*' srcdir/ destdir Please let me know if Im doing anything wrong while doing it with a remote UNIX box. Thanks. -------------- next part -------------- HTML attachment scrubbed and removed
Matt McCutchen
2007-Apr-27 00:57 UTC
copying directory structure only (not the files) from a remote UNIX box using rsync
On 4/25/07, Tariq Shaikh <tariq.a.shaikh@gmail.com> wrote:> Hi, > I am trying to copy the directory structure only from the remote UNIX > box onto the box from which Im executing the rsync. > > This is what I tried: > rsync -av --include '*/' --exclude '*' tashaikh@remotebox:/dw/etl/ > home/ > prod/log/ /export/home/tashaikh/auto/log > > The above keeps on executing without returning any result. > > I have tried to copy directory structure from another directory on the > same machine itself . The one shown below works: > rsync -av --include '*/' --exclude '*' srcdir/ destdir > > Please let me know if Im doing anything wrong while doing it with a > remote UNIX box.Three suggestions for debugging the remote command: (1) Use more -v options. (2) I really doubt the include/exclude options are causing the problem. Try the command without those options and see if it hangs in the same way. (3) You didn't mention what version of rsync you're using. If either side is older than 2.6.9, try upgrading to 2.6.9. Matt