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

Re: [Sheflug] Re: File Transfer



Richard Ibbotson <richard [at] sheflug.co.uk> writes:

> Jose
>
>>     scp my_file.txt username [at] host:/path/
>>
>>     or
>>     scp username [at] host:/path/to/file my_file
>
>
> Tried both of these and it just said "docs not a regular file".  But, 
> it is because it's just like any other folder.

can't scp directories.

can, however:

tar cvf - directory | ssh username [at] host 'sh -c "(cd /path/it/goes/in ;
  tar xvf - )"'

or something like that...

Easiest might be to 

tar cvf - directory | ssh username [at] host tar xvf - 

and then move the directory from your home directory with mv (or a
local tar :)

-- 
Eric E. Moore

Attachment: pgp00002.pgp
Description: PGP signature