Skip to content

Instantly share code, notes, and snippets.

@gillesbs
Last active July 28, 2023 18:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gillesbs/46fed0b2695507680c2edfbcd26ffa61 to your computer and use it in GitHub Desktop.
Save gillesbs/46fed0b2695507680c2edfbcd26ffa61 to your computer and use it in GitHub Desktop.
Synchronize FileZilla Site Manager between Windows devices
This example makes use of Google Drive (Backup and Sync from Google), but you can use other shared drive services such as OneDrive, Dropbox, box.com, WebDAV... as well.
Always replace [username] with your username on your device (you can find this by going to C:\Users in Windows Explorer).
Requirements:
- correctly installed and configured FileZilla
- correctly installed and configured shared drive service that is installed in the same user directory and uses the same account on all the devices
1. In Windows Explorer, go to C:\Users\[username]\AppData\Roaming\FileZilla\sitemanager.xml
2. Open a new Windows Explorer window and go to the shared drive location (e.g. C:\Users\[username]\Google Drive\FileZilla)
3. Copy the sitemanager.xml from the "roaming" Windows Explorer window to the "shared drive" window
4. In the "roaming" Windows Explorer window, rename sitemanager.xml to sitemanager.xml.BAK to create a back-up file
5. Open Windows Command Prompt as an administrator (go to Start, search for "cmd", right mouse click on "Command Prompt" and left mouse click on "Run as administrator")
6. Run the command: mklink "C:\Users\[username]\AppData\Roaming\FileZilla\sitemanager.xml" "C:\Users\[username]\Google Drive\FileZilla\sitemanager.xml" (make sure you use the correct directories to the sitemanager.xml: first the "roaming" directory and second the "shared drive" directory!)
6. Run the command: cd C:\Users
7. Run the command: mklink /j CurrentUser [username]
8. In FileZilla, open the Site Manager and do the following steps for every site that you assigned a local directory to
9. In the Advanced tab, under the default local directory, change the username to "CurrentUser"
e.g. C:\Users\[username]\Google Drive\MySite must become C:\Users\CurrentUser\Google Drive\MySite
10. Click "OK" after changing this to save your change
11. You may now close all windows. Do all of these steps on all the devices that you want to synchronize!
If everything went well, your FileZilla Site Manager will now be synced across all the devices.
I choose to keep the file name 'sitemanager.xml', but you can change this if you want to (change starting from step 3).
Let me know if you have any issues!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment