[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Backing up from NT to Linux



I've used smbmount to mount my NT share "users" under Linux and have written
a little cp batch file to copy across all the files from the folders under
that "share" into the home folders of the matching users on the linux box.
However the files are currently all owned by root.  Instead of chowning them
all after the copy is there a better way of copying them and giving them the
correct owner all in one go?

I'm currently using cp -R -v -p mnt/source/username/* /home/username

although -v doesn't seem to be doing much (however I only added -v after
running it through the first time so maybe there are no extra files to
report this time!)

Also how can I umount the smbmounted share to tidy things up afterwards?
I've looked at the smbmount man pages but couldn't find anything.

Chris Johnson
ICT Consultant
South East Sheffield Education Action Zone
E-mail : chris [at] seseaz.org.uk
Web : http://www.seseaz.org.uk

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 09/08/2004


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.