Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

"rsync" doesn't seem to synchronize create empty directories on the target_dir ( I have empty dir under "from_dir" directory ) , so why rsync not copy the the empty dir from "from_dir" to "target_dir" ?

rsync -WavH –progress /from_dir 176.23.4.1:/target_dir
share|improve this question
    
Is the 'empty_dir' readable by the user running rsync? –  desasteralex Jul 22 '11 at 22:11

1 Answer 1

Works for me:

$ rsync --version | head -n 1
rsync  version 3.0.7  protocol version 30
$ mkdir src
$ mkdir dest
$ mkdir src/emptydir
$ mkdir src/fulldir
$ touch src/fulldir/file
$ rsync -WavH -progress src/ dest/
$ ls -lR dest
dest:
emptydir/  fulldir/

dest/emptydir:

dest/fulldir:
a

Please provide a demonstration of the erroneous behaviour you're seeing, in a similar form to this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.