LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2013, 11:33 AM   #1
nidishady
Member
 
Registered: May 2013
Posts: 33

Rep: Reputation: Disabled
Transfering files from one server to another server


I have some files in my server,now i would like to transfer those files to another server without uploading and downloading the files..how can i do this task in linux server.please provide me detail process..thank you
 
Old 09-03-2013, 11:37 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
You can mount an NFS filesystem to each server and put the files in a shared area where they both have access to them....

or you can create an NFS export on one server and mount that shared NFS filesystem from the other server...
 
1 members found this post helpful.
Old 09-03-2013, 11:43 AM   #3
nidishady
Member
 
Registered: May 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
@netnix99 thank you very much..i would like to ask another question...well i do have one server but now i would like to make another machine as server or in the same machine another server here what i need to do is to have all the things what i have in previous machine/server in second server..is it possible to this without uploading and downloading?please give me an answer thank you!!!
 
Old 09-03-2013, 12:03 PM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
I am not sure I follow you, completely.

Are you trying to say that you want to have a second server that is a duplicate of the first, that will run in a virtual environment on the server that you already have AND have the ability to move files back and forth between the two servers without running a program such as SCP or SFTP?
 
Old 09-03-2013, 12:15 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by netnix99 View Post
You can mount an NFS filesystem to each server and put the files in a shared area where they both have access to them....

or you can create an NFS export on one server and mount that shared NFS filesystem from the other server...
i dont think nfs can mount thru routers... i would use sshfs if that is the case.
 
1 members found this post helpful.
Old 09-03-2013, 12:20 PM   #6
nidishady
Member
 
Registered: May 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
@netnix99 @schneidz yeah like in windows we have DC n ADC...like that concept can we have two server in the same machine and is it possibile to transfer files between them without downloading and uploading the files?
 
Old 09-03-2013, 12:41 PM   #7
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
schneidz..

what do you mean by
Quote:
i dont think nfs can mount thru routers... i would use sshfs if that is the case.
I didn't see anything about going through routers in his question.... You can use NFS across a routed network... now it wouldn't be very good to mount an NFS across an open internet connection, but if you created a L2TPv3 tunnel or even a GRE tunnel from point to point, you could mount the remote NFS filesystem....
 
Old 09-03-2013, 12:45 PM   #8
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
nidishady....

I still do not grasp what you are trying to ask.... If you have two servers in the same machine, I assume the environment is virtual. If you DID upload/download files, it would be very fast due to the virtual network between them, or you can still create an NFS solution between the two virtual servers.
 
1 members found this post helpful.
Old 09-05-2013, 09:00 AM   #9
karim.ouda
Member
 
Registered: Jun 2013
Posts: 41

Rep: Reputation: 3
if you are in same network, you can use samba service to transfer the files between machines.
as well as
you can use scp to transfer the files between two machines.

scp is secure way to transfer files between server.

you don't want to use uploading and downloading, may be you are using any client to transfer files. Use ssh by command line to transfer files.
It is safe and fast way.
 
Old 09-05-2013, 04:42 PM   #10
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by nidishady View Post
@netnix99 @schneidz yeah like in windows we have DC n ADC...like that concept can we have two server in the same machine and is it possibile to transfer files between them without downloading and uploading the files?
if you are NOT sharing the files as you have been advised via NFS, never use SAMBA for Linux to Linux stick with native not interpreted, then the ONLY way to get files from server A to server B is via some form of transfer mechanism. ie: scp, ftp, rsync, etc...

If you are looking to make a mirror of server A onto server B, then rsync is the way you handle that and that is "downloading and uploading the files".

even in the MS world your DC's are "downloading and uploading the files" all the time, depending on what you have set the timer to as the default is as little as 15min to as slow as once every 4hrs, IIRC, and that includes for Bridgehead DCs as well.

Sorry but unless you are creating a "network drive" <that would be the MS term for a share in Linux> then there is no means other then the make a duplicate of server A and use that to create server B, then as soon as A updates, B is out of date.

So what you have been advised is to create a NFS share, a network drive, to share the files via your LAN/WAN (not secure over WAN unless using some form of VPN, see above). this will do what you are asking for without "downloading and uploading the files".[COLOR="Silver"]
 
Old 09-05-2013, 04:44 PM   #11
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by karim.ouda View Post
if you are in same network, you can use samba service to transfer the files between machines.
as well as
you can use scp to transfer the files between two machines.

scp is secure way to transfer files between server.

you don't want to use uploading and downloading, may be you are using any client to transfer files. Use ssh by command line to transfer files.
It is safe and fast way.
everything you have listed is uploading and downloading by definition. just because you use a client does not change the fact scp/ftp/sftp/etc... are all transferring files via uploading and downloading.
 
Old 09-05-2013, 09:02 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
how can i do this task in linux server.please provide me detail process..thank you
the exact same way you would on a Microsoft Windows server
 
Old 09-06-2013, 07:03 AM   #13
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Rep: Reputation: 5
Just use SCP as per some other members suggestions:

This is just from memory but the syntax might be like the following (use man if not)

scp /path_to_folder_or_file user@server_name_or_IP:/path_on_server
 
Old 09-06-2013, 09:11 AM   #14
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by tombelcher7 View Post
Just use SCP as per some other members suggestions:

This is just from memory but the syntax might be like the following (use man if not)

scp /path_to_folder_or_file user@server_name_or_IP:/path_on_server
again this is going to COPY, thus the cp portion of scp, or in other words, upload the file from server A to server B, this is NOT what the OP is looking for. he needs a network share. simple.
 
Old 09-06-2013, 09:21 AM   #15
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ my vote is for sshfs.

these terms are nebulus. even on a network share your isp is still gonna' count it against your upload/download cap.
 
  


Reply



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
[SOLVED] Move files from external server to server behind router and local ip dingo-den Linux - General 3 08-24-2013 12:36 AM
Shell script on copying files and folders from a linux server to a windows server nithin6034 General 6 07-20-2011 07:59 AM
[SOLVED] Server disconnection when transfering files GriFF3n Linux - Server 33 08-30-2009 10:56 PM
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 09:54 PM
transfering all users from one server to another romel Linux - Newbie 1 05-02-2006 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:29 PM.

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
Open Source Consulting | Domain Registration