scp question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ravi Parimi
Date:  
Subject: scp question
>
> >>/_scp -rp :some/path .
> >>/_
> >>/_Note the -rp switch. ("r" for recursive, "p" to preserve times and
> >>/_permissions.)
> >>
> >>I think the key I was missing was leaving off the "*" at the end of what I wanted.
> >>
> >>
> >
> >Recently, I found out that you can run tar over ssh to transfer a complete
> >directory structure from one machine to another using ssh.
> >
> >I dont think ssh -r will copy sub-directories etc...
> >
> >tar cvf - dir/ | ssh "cat > dir.tar" does a great
> >job of replicating the directory structure completely onto the remote
> >machine...
> >
> >
> >--ravi
> >
> >
> 'scp -r' actually does copy directories and subdirectories.


Yes.. I verified it just now. Thanks for the clarification!

> Your example does show a great way tunnel data operations over ssh though.
> Wish rsa keys setup it can be used as a secure data tunnel. Also using
> utilities like rsync over ssh can make
> maintaining mirrored data structures easier and faster too.


I have set up Public Key authentication in the past and used it very
effectively with cron to make backups over the network. It is fun and also
hints that SSH is not just a secure replacement for the remote login
program!


--ravi