How to: copy files to teddie

To copy your files from beddie to teddie the scp command is recommended.
To copy all your home dir files from beddie onto teddie
on teddie you can run

scp -pr %BeddieUserName%@beddie:/home/%BeddieUserName%/* /home/%TeddieUserName%/

Where %BeddieUserName% is your old beddie username and
%TeddieUserName% is your new teddie name.

this will copy all files in your homedir to teddie over ssh including folders and preserve the file permissions.

aberry@uoguelph.ca's picture

I was about to suggest using

I was about to suggest using tar to preserve permissions and such, but then I noticed -p. That's freaking awesome :D!

--
Andrew

:D

yea, i did a happy dance the first time i saw that in the man page.
------
Matt Englert
SOCIS System Admin

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.