On Tue, 5 Sep 2000, Peter Loo wrote:

> Does anyone know if "rsync" can recursively create a directory if the
> directory at the destination does not exist?  

Certainly -- this is its default behaviour with the -a option.

Indeed, one can 'clone' whole Linux systems thus:

1.  fdisk and mkfs on a destination disk -- set multiple
partitions up, as needed.

2.  mount at, say, /mnt/build

3.  cd / ; rsync -av --exclude /mnt/build --exclude /proc \
         /. /mnt/build/.

(long wait while the disk is copied, head to toe.)

4.  Fix /mnt/mount/etc/fstab, and /mnt/build/etc/lilo.conf to
properly reflect the new partitions; Move drive to a new
host, and jumper properly. Boot from a recovery
floppy, run ldconfig, and lilo, and you're done

... It made directories, preserved device specials --
everything.  From root on down.  Do it all the time.

-- 
end
==================================
 .-- -... ---.. ... -.- -.--
Copyright (C) 2000 R P Herrold
      [EMAIL PROTECTED]  NIC: RPH5 (US)
   My words are not deathless prose, 
      but they are mine.

   Owl River Company  614 - 221 - 0695
   "The World is Open to Linux (tm)"
   ... Open Source LINUX solutions ...
      [EMAIL PROTECTED] 
         Columbus, OH


Reply via email to