RSYNC all Directories

Matt McCutchen matt at
Wed Feb 13 14:31:11 GMT 2008

On Wed, 2008-02-13 at 06:06 -0800, bedwards wrote:
> How would an RSYNC command look to copy all directories from one machine to
> another.
> I have tried the following and only get a few directories:
> RSYNC --rsh=ssh -rpog / IPADDRESS:/Directory
> RSYNC --rsh=ssh -rpog */ IPADDRESS:/Directory
> RSYNC --rsh=ssh -rpog /* IPADDRESS:/Directory

The first command should work.  What directories does it copy, and what
directories are missing from the destination?  You could rerun the
command with verbosity level 2 (-vv) to get more information about what
it is doing.

I would recommend passing -t to preserve modification times (needed for
rsync to skip unchanged files on subsequent runs) and --one-file-system
to avoid sending such virtual filesystems as /proc and /sys , but
neither of these suggestions relates to the missing directories.


More information about the rsync mailing list