Re: copy folder to remote server

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

 



it works with "-r" :-)

On Mon, Jul 21, 2008 at 4:23 PM, Mad Unix <madunix@xxxxxxxxx> wrote:

> [root@intra /]# scp -R /tmp root@xxxxxxxxxx:/tmp/test
> scp: illegal option -- R
> usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
>            [-l limit] [-o ssh_option] [-P port] [-S program]
>            [[user@]host1:]file1 [...] [[user@]host2:]file2
>
>
> On Mon, Jul 21, 2008 at 4:14 PM, Paul M. Whitney <paul.whitney@xxxxxxx>
> wrote:
>
>> You could just use: scp -R /usr/local/apache/htdocs userid@xxxxxxx:
>> /var/www/html/
>>
>> Paul
>>
>> -----Original Message-----
>> From: redhat-list-bounces@xxxxxxxxxx [mailto:
>> redhat-list-bounces@xxxxxxxxxx] On Behalf Of Mad Unix
>> Sent: Monday, July 21, 2008 10:08 AM
>> To: General Red Hat Linux discussion list
>> Subject: copy folder to remote server
>>
>> I want to copy all the following files/folder/subfolders under
>> /usr/local/apache/htdocs to a remote server within this directory
>> /var/www/html/
>> Am I correct with this command, or far away offff
>>
>> tar zcvf -  /usr/local/apache/htdocs | ssh root@xxxxxxx "cat >
>> /var/www/html/htdocs.tar.gz"
>>
>> Thanks
>> --
>> Your search - madunix - did not match any documents.
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>
>
>
> --
> Your search - madunix - did not match any documents.
>



-- 
Your search - madunix - did not match any documents.
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux