how to sftp /home plus subdirectories -

Rick Stevens ricks at nerd.com
Mon May 12 22:10:17 UTC 2008


Bob Goodwin USA wrote:
> Patrick O'Callaghan wrote:
>> On Mon, 2008-05-12 at 14:57 -0400, Bob Goodwin USA wrote:
>>  
>>> Can someone tell me what the proper command is to transfer the entire 
>>> home directory plus it's subdirectories between two Fedora 
>>> computers.  I have no trouble moving files but can't seem to figure 
>>> out how to do it in one fell swoop, if it is possible to do so?
>>>
>>> I've tried gftp but that gets me into other uncertainties and has 
>>> wasted my time.
>>>
>>> I should be able to issue a "get" command it would seem?
>>>     
>>
>> Rsync is superior to ftp for this, for various reasons (security,
>> copying permissions, compression, optionally leaving stuff out etc.
>> etc.). It's easiest if you have SSH access to the target machine, e.g.:
>>
>> rsync -az From.some.where:/home/foo/ To.somewhere.else:/home/foo
>>
>> poc
>>
>>   
> 
> Ok, thanks to all, I will try rsync, I guess I should have known to try 
> that but it did not occur to me since I have been doing sftp for a while.
> 
> Again. thanks for the quick response.

"scp -r" will do it as well, assuming you have ssh between the two
machines, and it's encrypted as well.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                       rps2 at nerd.com -
- Hosting Consulting, Inc.                                           -
-                                                                    -
-          When all else fails, try reading the instructions.        -
----------------------------------------------------------------------




More information about the fedora-list mailing list