Transfer Files from FTP Server to OneDrive: Step-by-Step
In this article
Transferring files from an FTP server to OneDrive is a common task when migrating data or setting up a cloud backup. You can do it manually by downloading and re-uploading, or automate it with tools like rclone. This guide covers both methods, focusing on the manual approach for simplicity and the rclone method for automation. You will need FTP credentials (host, username, password) and your OneDrive login details.
What You'll Need
- FTP server address (hostname or IP), port (usually 21), username, and password.
- Access to the OneDrive web app (or the OneDrive desktop app if you prefer).
- Optional: A tool like FileZilla (free) for easier FTP browsing.
- Optional: rclone (free, command-line) for automated or bulk transfers.
Step-by-Step
Method 1: Manual Transfer (Browser + OneDrive Web)
- Connect to your FTP server using a web browser (if it supports FTP, e.g., Firefox) or an FTP client like FileZilla. In a browser, type
ftp://username:password@hostnamein the address bar. In FileZilla, enter the host, username, password, and port (default 21), then click Quickconnect. - Navigate to the files you want to transfer. In FileZilla, use the left panel for local files and the right panel for the FTP server. In a browser, you'll see a list of folders and files.
- Download the files to your computer. In FileZilla, right-click the files/folders and choose “Download.” In a browser, right-click and “Save Link As” or just click to download (depending on the browser). Save them to a local folder you can find easily (e.g., Desktop\FTP_Transfer).
- Go to the OneDrive website (onedrive.com) and sign in with your Microsoft account.
- Navigate to the folder where you want the files to appear (or create a new folder).
- Upload the downloaded files. Click “Upload” > “Files” or “Folder” and select the items you downloaded. You can also drag-and-drop them into the browser window.
- Wait for the upload to complete. The progress bar shows when it's done. Verify the files are there.
- Delete the local copies after confirming the upload succeeded (optional, to save space).
Method 2: Automated Transfer with rclone (Recommended for Large or Repeated Transfers)
- Download and install rclone from the official website (rclone.org). It's a command-line tool available for Windows, macOS, and Linux. For Windows, download the zip, extract it, and add the folder to your PATH or use the full path in commands.
- Configure rclone for FTP. Open a terminal/command prompt and run
rclone config. Choose “n” for new remote. Name it (e.g., “myftp”). Select “FTP” from the list. Enter your FTP host, port (default 21), username, and password. Leave advanced options as default unless you need them. Confirm and quit. - Configure rclone for OneDrive. Run
rclone configagain, choose “n”, name it (e.g., “myonedrive”), and select “OneDrive”. Follow the prompts: it will ask for your Microsoft account login and permissions. Choose the OneDrive type (usually “OneDrive Personal” or “OneDrive Business”). Select the drive you want to use. Confirm and quit. - Test the connections. Run
rclone lsd myftp:to list FTP directories, andrclone lsd myonedrive:to list OneDrive folders. If both work, you're ready. - Copy files from FTP to OneDrive. Use the command:
rclone copy myftp:/path/to/source myonedrive:/path/to/destination. For example,rclone copy myftp:/public_html myonedrive:/Backups. This will copy all files and folders recursively. Add--progressto see transfer progress. - Verify the transfer. Run
rclone check myftp:/path/to/source myonedrive:/path/to/destinationto compare hashes and ensure everything copied correctly. - Schedule the transfer (optional). To run automatically, you can create a scheduled task in Windows (Task Scheduler) or a cron job on Linux/macOS that runs the rclone copy command at your desired frequency.
Common Mistakes
- Using the wrong FTP mode: Some servers require passive mode (common behind firewalls). In FileZilla, set it via Edit > Settings > Connection > FTP > Passive. In rclone, you can set
--ftp-passive. - Not checking file permissions: FTP may not preserve Unix permissions, which can cause issues if you need them. rclone's FTP backend doesn't support permissions; it copies content only.
- Overwriting files unintentionally: The rclone
copycommand only copies new/changed files by default, butsyncdeletes files in the destination that aren't in the source. Usecopyunless you want a mirror. - Ignoring file size limits: OneDrive has a per-file size limit (250 GB for personal, 15 GB for business in some plans). Check your files; if any exceed the limit, you'll need to compress or split them.
- Using the wrong OneDrive folder: rclone may ask which OneDrive drive to use (e.g., personal vs. business). Selecting the wrong one can upload to an unexpected location.
Tips
- Use rclone for large transfers: It's faster and more reliable than manual download/upload, especially for thousands of files.
- Enable checksums: rclone can verify integrity with
--checksumto compare file hashes instead of size/time. - Bandwidth control: If you have limited bandwidth, use
--bwlimit 5Mto cap speed at 5 MB/s. - Test with a small folder first: Before moving everything, test with a few files to ensure the configuration is correct.
- Keep your FTP credentials secure: Store them in rclone's encrypted config (it prompts for a password) and never share them.
Troubleshooting
If the transfer fails or is slow:
- Check your FTP connection: Try connecting with FileZilla or a browser. If you get a timeout, the server may be down or the port is blocked. Try passive mode.
- Check OneDrive storage: Ensure you have enough space. Go to onedrive.com and check the storage meter.
- Check rclone logs: Run with
--verboseto see detailed errors. Common issues: wrong credentials, wrong path, or permission denied on FTP. - Restart the transfer: If it fails midway, rclone can resume with
--continue(for copy) or you can re-run the command; it will skip already-copied files. - If using a browser, try a different browser: Some browsers have removed FTP support (Chrome, Edge). Use Firefox or an FTP client.
- If using rclone and OneDrive authentication fails: Re-run
rclone configand reconfigure the OneDrive remote, making sure you grant the necessary permissions.
Frequently Asked Questions
Can I transfer files directly from FTP to OneDrive without downloading to my computer?
Yes, using rclone as described above streams the data directly between the two services, without saving to your local disk. This is the most efficient method.
Is there a limit on the number of files I can transfer?
No, but OneDrive has API rate limits (e.g., 10,000 requests per hour for personal accounts). For very large transfers, you may hit these limits and need to wait or use a batch approach.
Does rclone work on Windows?
Yes, rclone is fully supported on Windows. You can run it from Command Prompt or PowerShell. You can also create a batch file for scheduled transfers.
Can I schedule automatic transfers from FTP to OneDrive?
Yes, you can use Windows Task Scheduler to run an rclone command at set times. On Linux/macOS, use cron. This is a common way to keep OneDrive updated with FTP content.
Will the transfer preserve folder structure?
Yes, both manual and rclone methods preserve the directory structure. In rclone, the copy command recreates the same folder hierarchy in the destination.
What if my FTP server requires SFTP (SSH) instead of FTP?
rclone supports SFTP as a separate backend. Configure a new remote and choose “SFTP” instead of “FTP”. The steps are otherwise the same.