Transfer Data to Server
Author: Neil Jianzhang Ni
Date: 21-May-2024
Graphical Tools to Transfer Files
If you prefer a graphical interface to transfer files, there are two popular options corresponds to these two commands:
WinSCP
If you only need to upload or download a few files, WinSCP is a good choice. s Download it from here: https://winscp.net/eng/download.php
FreeFileSync
A perfect tool if you need a folder to be identical to your local ones. https://freefilesync.org/
Command Line Tools for File Transfer
The WinSCP and FreeFileSync are similar to the following command line tools, which are more lightweight.
<command> <initial_path> <destination_path>
Copying Files scp
scp is a command line tool that allows you to copy files and directories between two locations.
It is a secure way to transfer data between your local machine and the server.
scp <file_path> <username>@dream:<destination_path>
If you want to copy a directory, you can use the -r flag.
scp -r <directory_path> <username>@dream:<destination_path>
Syncing Files rsync
rsync is a powerful tool that allows you to synchronize files and directories between two locations.
It is useful for transferring large amounts of data and for keeping files in sync.
rsync -av --progress <source_path> <username>@dream:<destination_path>
The -a flag stands for archive mode, which preserves the file permissions and other attributes.
The -v flag stands for verbose mode, which displays detailed information about the transfer.
The -z flag means compresses the data during the transfer for faster transmission.
Downloading Files from Server
Simply swap the location of the source and destination in the scp and rsync commands to download files from the server to your local machine.
scp <username>@dream:<file_path> <destination_path>
rsync -av --progress <username>@dream:<file_path> <destination_path>
Terminus
A more advanced options if you are a heavy user of this server.