Have the need to transfer files from one server to another, but don't know how to realize this goal? Don't worry! This is now a command demand of many users, and why this article be generated.
In this article, you will get 2 common ways and one easier way, all of them can help you out of this trouble. Then, let's have a closer look at this article.
How to transfer files from server to server
First, you need to know, the "server" in transfer files from server to server means a device that centrally manages resources, it can be any operating system, for example, Windows 10 or Server 2012. Then, let's talk about the methods. You have three methods, namely, use FTP (File Transfer Protocol), SCP (Secure Copy Protocol), or third-party software.
Copy files using FTP: You can choose to download Filezilla or other FTP desktop tool, configure and use it to upload or download files between two remote servers.
Also, you can make fully use of Windows file manager to connect the remote server, eg: File Explore in Windows 8/10, Windows Explorer in Windows 7, then copy and past from or to this server.
Command line tool SCP to transfer files: SCP is a native feature of Windows 10, Linux and Mac, based on SSH protocol, can help users transfer files and entire folders either from local to remote, remote to local, or remote to remote without downloading and uploading.
You could directly use Terminal for Mac or Command Prompt in Windows. For Windows 8.1 and previous system, you need to use Putty, known as Windows SSH app.
Software to copy files from server to server - AOMEI Backupper Server: It's a third-party file sync software that allows you to make an exact copy of original files by syncing files from server to server with the same network segment. Also, the schedule sync is supported.
2 common ways to transfer files from one server to another
Method 1: Connect FTP server and copy files from one server to another in Windows
To transfer files between 2 Windows servers, the traditional way is to use FTP desktop app as a middle-man. And This is what most companies do, so I won’t go into details. Here, I'll introduce you a new way to transfer files using FTP. Without further ado, let's get started, taking Windows 10 as an example.
1. Open File Explorer, select This PC, then right-click the blank space and choose "Add a network location".
2. In the new pop-up window, click "Choose a custom network location" to move on.
3. Then, type the ftp server address and the form is ftp://server.com. Then, you will be asked to type username and password if your server has one. If not, check "Log on anonymously" for limited access.
4. Type a name you like or easy to remember. Later, you will see the FTP site under the Network locations link in This PC.
5. Copy and paste files or folders from this server, or to it.
Method 2: Transfer files between two servers with SCP
As you know, SCP is based on SSH, so you need an SSH key or password for authentication on the remote systems. Meanwhile, SCP will overwritten files without warning if both of them have the same name and location on two systems, whether local or remote. That's what you need to pay attention to. Then, get details below.
In the first place, learn the SCP command syntax.
The basic one: scp [OPTIONS] [SOURCE] [DESTINATION]. If either of the path is on the remote system, please add the server address first. eg: @:.
Then, open command prompt in Windows 10, transfer files with the following syntax and replace the parameters with your own.
1. To transfer file or directory from local system to remote, the syntax are sequently:
scp [file_path] [user]@[remote_host]:[remote_dir]
scp -r [local_dir] [user]@[remote_host]:[remote_dir]
2. To copy file from remote server to local machine, the syntax are respectively:
scp [user]@[remote_host]:[remote_file_path] [local_dir]
scp -r [user]@[remote_host]:[remote_dir] [local_dir]
3. To transfer file between two remote servers ( passwords required for both system), the syntax is:
scp [user]@[remote_host]:[remote_file_path] [user]@[remote_host]:[remote_dir]
Easier way to transfer files from server to server
To transfer files from one server to another easily, you need the help of AOMEI Backupper Server. It supports 4 file sync solutions, namley, basic sync, real-time sync, mirror sync, two-way sync. Thus, you can choose any of them per your needs.
- It supports transferring files between Windows Server with the help of its schedule sync. You have 3 options, including daily/weekly/monthly.
- It supports all the Windows system, including Windows Server 2003/2008(R2)/2012(R2)/2016(R2)/2019 and Windows 11/10/8/7/XP/Vista.
- It supports various file system, not just NTFS but also FAT32, FAT, EXT4, etc.
- Its transfer speed is quite fast, so you can sync large amounts of files in a very short time.
Next, let's see how it works.
1. Download AOMEI Backupper Server and install it. Then, launch this software and click "Sync" and "Basic Sync" subsequently.
You can enjoy these features:
• If you modify files very frequently, it's suggested to use "Real-Time Sync" sync files in real-time to keep changes.
• If you want to make the destination directory are always the same as source, you could use "Mirror Sync" to mirror folders. Note any unwanted files cannot be added to the destination.
• If you want to keep changes in both directories and sync them in time, "Two-Way Sync" will be a better choice.
2. Click "+ Add Folder" to select the files or folders on the local computer you want to sync.
• If your files or folders are on a remote server, please add the server as network location first, then select files that need to be synced.
• If you only want to sync files with certain file extension, click the funnel shapped icon next to the selected folders, and include or exclude file extension you want to sync.
Then, click the inverted triangle > "Select a network location" >"Add Share or NAS Devices", and type the required information in the next window to add your server as a network location and select a target path.
3. To automatically sync files, click "Schedule" and select daily/weekly/monthly. Also, you can sync files during system shutdown with the help of "Event triggers". After that, click "Start Sync" to begin the pending operation.
Aside from directly transferring files from server to server, you still can sync files to external hard drive like HDD, SSD, flash drive, CD/DVD etc and connect it to another server via a connector, whether USB port, adapter or encloser. Similarly, it's feasible to synchronize files to NAS or cloud storage and access them from a computer.
To transfer files from server to server, you have 3 methods, including FTP for Windows 7/8/10, SCP for command line, AOMEI Backupper for all Windows system. Please read carefully and then pick one of them to transfer your files.
Honestly, AOMEI Backupper is easier and has more useful features. Except for sync, it still allows you backup your server regularly, so you can recover data in the event of a disaster. Also, schedule backup settings are supported, such as, daily/weekly/monthly.
For IT technician, you could use AOMEI Backupper Tech Plus. It supports creating portable version of this software and directly run off a USB flash drive on different computer without installing.