Sync Folder with Dropbox Without Moving It
In this article
Yes, you can sync a folder located outside the default Dropbox directory without moving it. This is achieved by creating a symbolic link (symlink) or using a junction point on Windows, which tricks Dropbox into treating an external folder as if it were inside your Dropbox folder. You need the Dropbox desktop app installed and running on your computer.
What You'll Need
- A computer running Windows 10/11 or macOS.
- The official Dropbox desktop application installed and logged in.
- Administrator privileges on your computer.
- A terminal or command prompt window.
Step-by-Step
- Prepare the Source Folder: Identify the folder you want to sync that is currently stored elsewhere on your hard drive (e.g.,
C:\Users\Name\Documents\Photos). Ensure this folder contains the files you wish to back up to Dropbox. - Create a Placeholder in Dropbox: Open your main Dropbox folder (usually found in your user directory). Create a new, empty subfolder here. Name it exactly what you want the synced folder to be called in Dropbox (e.g.,
ExternalPhotos). This step is crucial because Dropbox needs a destination path to link to. - Delete the Placeholder: Delete the empty folder you just created inside Dropbox. Do not move it; simply remove it so the path exists but is empty. This prevents conflicts when you create the link.
- Open Command Prompt or Terminal: On Windows, press
Win + R, typecmd, and press Enter. On macOS, open the Terminal application from Applications > Utilities. - Run the Link Command: You will use the
mklinkcommand (Windows) orln -s(macOS). The syntax requires three parts: the type of link, the path to the new link (inside Dropbox), and the path to the original folder (outside Dropbox).- For Windows: Type the following command, replacing the paths with your actual folders:
mklink /J "C:\Users\YourName\Dropbox\ExternalPhotos" "C:\Users\YourName\Documents\Photos"
The/Jflag creates a directory junction, which is generally more stable for large folders than a standard symlink on Windows. - For macOS: Type the following command:
ln -s "/Users/YourName/Documents/Photos" "/Users/YourName/Dropbox/ExternalPhotos"
- For Windows: Type the following command, replacing the paths with your actual folders:
- Verify the Link: Once the command executes successfully, check your Dropbox folder. You should see the folder icon with a cloud symbol, indicating it is syncing. Check your Dropbox status icon in the system tray (Windows) or menu bar (macOS) to ensure it starts uploading files from the external location.
- Wait for Syncing: Dropbox will begin scanning and uploading the files from the original location. Depending on the size of the folder, this may take some time. Do not move or rename the original folder during this process.
Common Mistakes
One frequent error is attempting to link a folder that already exists inside the Dropbox directory. Dropbox cannot handle duplicate names or nested loops, so always delete the placeholder folder before linking. Another mistake is using relative paths in commands, which often break if the working directory changes. Always use absolute paths (starting with C:\ or /Users/) to ensure stability. Additionally, users sometimes forget to run the command prompt as an administrator on Windows, which results in permission denied errors.
Tips
If you have many folders to sync, consider scripting the process. For Windows, you can write a simple batch file to automate the mklink commands. Always keep the original folder structure intact; do not move files around while Dropbox is actively syncing them, as this can cause conflict errors. If you plan to access these files from multiple computers, remember that symlinks are local to the machine where they are created. They will not automatically appear on other devices linked to the same account unless you recreate the links there.
Troubleshooting
If Dropbox reports an error or fails to sync the linked folder, first check the Dropbox Help Center for specific error codes. Common issues include insufficient permissions. Ensure your user account has read/write access to both the original folder and the Dropbox directory. If the link breaks, you may need to recreate it. To remove a broken link, delete the folder from within Dropbox and then use the command prompt to remove the junction/symlink (on Windows, use rmdir instead of mklink). If files are stuck in "Syncing" indefinitely, try restarting the Dropbox app. If problems persist, unlink the computer from Dropbox and relink it, but note that this requires re-downloading all data unless you choose the "Keep my files" option during setup.
Frequently Asked Questions
Can I sync a folder from a USB drive?
No, Dropbox does not support syncing removable drives like USB sticks directly via symlinks in a reliable way. The drive must be permanently connected and assigned a consistent drive letter, which is rarely practical.
Will this work on Linux?
Yes, the process is similar to macOS. Use the ln -s command in the terminal to create a symbolic link between the external folder and the Dropbox directory.
Does this use extra storage space?
No. The files remain in their original location. Dropbox only stores the data once. The symlink is a tiny pointer file that takes negligible space.
Can I edit files in the original folder?
Yes. Any changes made to the files in the original source folder will be reflected in Dropbox and synced to other devices, just as if the files were physically inside the Dropbox folder.
Is this method supported by Dropbox officially?
Dropbox supports symlinks and junction points, but they are considered advanced features. If you encounter issues, Dropbox support may suggest removing the link and moving the files instead.