Lawson,

The "tartar" script worked very nicely to copy a directory on one
drive to another drive, thanks!

> #!/bin/bash
> tar -C "$1" -cOl . | tar -C "$2" -xpf -

However, I ran into a lot of ownership and permission errors, and so
these were often not preserved. This shifts the issue from tar to
permissions, but perhaps I can sneak it in here because it does bear
on setting up a backup.

My guess is that I need to give user write permission to /mnt/mirror
if I am to preserve user's ownership and permissions. Root can give
that permission, but when the mount point is mounted, the permissions
automagically revert to rwxr-xr-x.

I'm mystified. The cause might well be in /etc/fstab. The relevant
line is:

     /dev/sdc1  /mnt/mirror     ext2    noauto,user

I find that my mounting the primary partition of the external mass
storage device, I have access to all its partitions. But only root can
write to them. 

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