Transfering files from one server to another server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
@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!!!
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?
@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?
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....
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.
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.
@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"]
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.