LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2008, 02:31 AM   #1
mohanreddy_vr
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
File transwer Between Two Linux Machines


I want to transfer Large files(may be 4gb) from Linux server Machine to Linux client machine .can any one tell me which protocol i can use to transfer files with secured maner.

Thanks
 
Old 02-26-2008, 02:53 AM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
For securely transferring files, your best bet would be to take a look at 'scp' which uses the SSH protocol to transmit files. All you need is a valid login on both boxes and a valid SSH key known to both hosts. Read up on it here at LQ or use 'man scp' for more information.
 
Old 02-26-2008, 04:19 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
I would recommend rsync over scp ... especially for large files. Issue and read "man rsync"
 
Old 02-27-2008, 01:29 AM   #4
mohanreddy_vr
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I am a biginer of Linux.Can u tell me how to use 'rsync' protocol in Linux.
Thanks
 
Old 02-27-2008, 01:33 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Bruce was pretty clear - have a look at the man page (ie from a terminal, type "man rsync" without the quotes). It gives plenty of examples.

Make sure you have the daemon running on the remote machine as well.
 
Old 02-27-2008, 01:41 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Sure ... some good examples are in the rsync man page. In a terminal issue "man rsync"

I backup my workstation to the LAN every night using passwordless login and ssh with this command:
Code:
rsync -va --exclude=WinXP.img --exclude=scratch.img --exclude='kernel' -e "ssh -o BatchMode=yes -o user=root -i /root/.ssh/identity.silas"    silas:~mingdao /backup2/silas/
For just transferring some data, such as files after a fresh install:
Code:
rsync -va /directory/on/server/ /directory/on/client/
When using rsync if you leave off the trailing slash, it will transfer the directory ... /home/mingdao /server/backup/ copies the mingdao directory to /server/backup/mingdao/ ... but /home/mingdao/ /server/backup/ would just copy all the files in /home/mingdao/ to /server/backup/

I have a bash script (/usr/local/sbin/mirror-slackware-current.sh) cron that runs on my server every night to keep a mirror of Slackware -current on my server.

If something like that is not what you're looking for, or the man page is unclear, give a real example and someone can give you a command.

Was slow in posting and connection here is lowsy.

As billymayday said, make sure /etc/rc.d/rc.rpc is executable and the server is running.

Last edited by Bruce Hill; 02-27-2008 at 01:43 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File sharing between 2 linux machines and windows jwaters504 Linux - Networking 5 09-03-2007 08:26 PM
file sharing between 2 linux machines. keeshan Linux - Networking 1 07-26-2007 10:22 PM
remote file access (non-networked machines) mikescar Linux - Newbie 3 02-03-2004 07:01 PM
File sharing between two linux machines sridharanvinod Linux - Distributions 2 02-01-2004 12:23 PM
how to connect two linux machines for file sharing? concoran Linux - Networking 5 11-08-2001 09:50 PM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration