I'm trying to copy a directory tree from one mounted hard disk to
another. I want to copy the contents of a directory named "backups" on
a secondary SCSI HD to one of the same name on an external USB mass
storage device.

The source is /mnt/sdb1/storage/backups
The target is /mnt/mirror/storage/

Root changes to the source "backups" directory and runs the
following: 

    tar cf - . | (cd ../../../mirror/storage/backups tar xvf -) 
    ./  

Nothing happens. No error message about not being able to navigate the
path to find the directory, no sound of disk activity, no resulting
files.  

So I tried: 

   tar -l -cpf - /mnt/sdb1/storage/backups | tar -C
   /mnt/mirror/storage/backups -pxf -

This did create a backup, but reproduced the path (/mnt/mirror/
storage/backups/mnt/sdb1/storage/backups) and gave me a lot of errors
about not being able to copy symlinks and early on some errors about
not being able to reproduce ownership. When I try to reduce the source
to ".", tar complains about the empty source.

Haines Brown 



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to