Best Way to Upload Large Files to a Linux VPS
In this article
For most people, the best way to upload large files to a Linux VPS is rsync over SSH — it's fast, resumable, secure, and already installed on nearly every Linux system. Unlike SCP or FTP, rsync only transfers the changed parts of a file, so re-uploading after an interruption is nearly free.
What to Look For
Not all upload methods are equal. Here are the criteria that actually matter when moving big files (say, 1 GB to several TB) to a remote server:
- Resumability — If the connection drops, can you pick up where you left off without restarting? This is the #1 feature for large files.
- Speed — Does it use compression? Can it parallelize? Some tools are single-threaded and slow on high-latency links.
- Security — Is the data encrypted in transit? Plain FTP or HTTP is a no-go for anything sensitive.
- Ease of use — Is it a simple command or does it require a client GUI? Can you script it?
- Reliability — Does it verify the file after transfer? Does it handle large files (over 2 GB) gracefully?
- Cost — Most tools are free, but you might pay for bandwidth or storage. Some methods (like cloud sync) have subscription costs.
rsync over SSH
Strengths: The gold standard. Resumes interrupted transfers, compresses data, preserves permissions/timestamps, and can delete remote files to mirror a directory. Works over SSH, so it's encrypted. It's a single command, easy to script.
Trade-offs: Not great for many small files (overhead per file). Requires SSH access (which you usually have). No GUI by default, though tools like luckyBackup or grsync wrap it.
Who it suits: Almost everyone. If you have SSH access, rsync is the default choice for one-off or recurring uploads.
Basic usage:
rsync -avzP /local/path/file.tar.gz user@vps:/remote/path/
The -P flag enables progress and resume. For many files, add --delete to mirror.
SCP (Secure Copy)
Strengths: Simple, built into OpenSSH, works everywhere. No extra software needed. Good for occasional small-to-medium files.
Trade-offs: No resume — if it fails, you start over. No compression by default (though you can use -C). Can be slow on high-latency links because it's single-stream.
Who it suits: Quick one-off transfers of a few hundred MB or less, when you don't want to learn rsync flags.
SFTP (SSH File Transfer Protocol)
Strengths: Interactive, works with GUI clients like FileZilla or WinSCP. Supports resume in most clients. Encrypted. Good for browsing remote directories and uploading multiple files with a drag-and-drop.
Trade-offs: Slower than rsync for large files (no delta transfer). Requires a client for convenience; command-line sftp is clunky. Not ideal for automating.
Who it suits: Users who prefer a GUI or need to manage files interactively.
FTP / FTPS (with clients like FileZilla)
Strengths: Familiar, easy to set up, many clients support parallel transfers and resume. FTPS adds TLS encryption.
Trade-offs: Plain FTP is unencrypted — never use it for sensitive data. Requires installing and configuring an FTP server (like vsftpd). Slower than rsync for large files. Not ideal for one-off transfers.
Who it suits: Those who already have an FTP server running or need a simple way for non-technical users to upload.
HTTP/HTTPS with WebDAV or Nextcloud
Strengths: Works through firewalls, can be accessed from any browser. WebDAV can be mounted as a network drive. Nextcloud provides a nice web UI and sync clients.
Trade-offs: Requires setting up a web server and possibly WebDAV or Nextcloud. Slower than rsync for large files. May have file size limits in PHP/nginx. Not as efficient for resuming.
Who it suits: When you need a web-based interface or want to share files with others via a link.
Cloud Sync (rclone, Syncthing)
Strengths: rclone can sync to/from cloud storage (S3, Google Drive, etc.) and also to a remote server via SFTP/HTTP. It's extremely fast, supports chunked uploads, and can resume. Syncthing does real-time bidirectional sync between folders.
Trade-offs: rclone has a learning curve. Syncthing may not be ideal for one-off large uploads (it's more for continuous sync). Both require installing software on both ends.
Who it suits: Power users who need to sync large datasets regularly or want to leverage cloud storage as an intermediary.
How to Choose
Your choice depends on three things: budget, use case, and your comfort with the command line.
- Budget: All the tools listed are free. The cost is in time and setup. If you already have SSH access, rsync costs nothing extra. If you need a GUI, FileZilla is free. If you want cloud sync, rclone is free but you might pay for cloud storage.
- Use case: For a one-time upload of a 10 GB database dump, rsync is perfect. For ongoing backup of a website directory, rsync with
--deleteis ideal. For interactive browsing, SFTP. For sharing with non-technical users, a web-based solution like Nextcloud. - Trade-offs: Speed vs. simplicity. rsync is fast but requires learning flags. SCP is simple but not resumable. FTP is easy but insecure unless you use FTPS. Cloud sync is powerful but overkill for a single file.
Frequently Asked Questions
Can I resume an interrupted rsync transfer?
Yes, if you use the -P or --partial flag. rsync will restart from where it left off, transferring only the remaining parts.
Is SCP faster than rsync?
Generally no. rsync can compress data and only transfer differences, so it's often faster, especially for repeated syncs. For a single fresh upload, SCP might be slightly faster due to less overhead, but the difference is small.
Do I need to install anything on the VPS?
For rsync, SCP, and SFTP, you only need SSH server (usually installed). For FTP, you need to install an FTP server. For WebDAV/Nextcloud, you need a web server and PHP.
How do I upload a file larger than 2 GB?
All the tools mentioned handle large files fine. Just avoid using FTP with a client that has a 2 GB limit (most modern ones don't). rsync and SCP have no such limit.
What if my connection is very slow?
Use rsync with compression (-z) and resume. You can also use --bwlimit to avoid saturating your bandwidth. For extremely large files, consider splitting them with split and uploading parts, then concatenating on the server.
Is it safe to use plain FTP?
No. FTP sends your password and data in plaintext. Use FTPS (FTP over TLS) or SFTP instead.
Bottom Line
For 95% of cases, rsync over SSH is the best way to upload large files to a Linux VPS. It's secure, resumable, fast, and free. If you prefer a GUI, use an SFTP client like FileZilla. If you need to sync continuously with a remote folder, consider Syncthing or rclone. Start with rsync — you'll rarely need anything else.