On February 21, 2006 15:45, JoeHill wrote:
> On Tue, 21 Feb 2006 14:24:57 -0700
>
> Martell, Larry got an infinite number of monkeys to type out:
> > >Hmmm, I did use the -r switch, but I'll check the perms. Wouldn't it
> > > error out if there was a problem with the perms on the destination dir?
> >
> > If there was a problem with a dir, yes, but if there were permission
> > problems with any individual files it would skip those but still copy the
> > others.
>
> Yup, sure enough, the files that weren't copied are owned by root.
>
> Now, I'm not sure I want to use scp as root to do the file copy, then *all*
> the destination files will be owned by root, no?

If you want to be sure they all get the same permissions etc., it might be 
easiest to use tar:

cd <wherever>
tar czvf files.tgz .
scp files.tgz <towherever>

Then on the other machine, do:

cd <wherever>
tar xzvf files.tgz

-- 
Ron (ronhd at users dot sourceforge dot net)
Opinions expressed here are all mine
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to