Shared configuration file

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
mrbillb
500 Command not understood
Posts: 1
Joined: 2011-07-15 21:12
First name: William
Last name: Bradley

Shared configuration file

#1 Post by mrbillb » 2011-07-15 21:21

Is there a way to share the FileZilla configuration between different operating systems. I run Ubuntu, Windows 7, and Max OS X. I would like to avoid having to configure FileZilla separately for each one. Is there a way to accomplish that?

User avatar
boco
Contributor
Posts: 24915
Joined: 2006-05-01 03:28
Location: Germany

Re: Shared configuration file

#2 Post by boco » 2011-07-16 10:13

Yes, by changing the location for the configuration to a drive accessible by all OS. Have a look at the file fzdefaults.xml.example in the docs subdirectory. Instructions are inside.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

javiersanchez
500 Command not understood
Posts: 4
Joined: 2015-12-30 16:36
First name: Javier
Last name: Sanchez

Re: Shared configuration file

#3 Post by javiersanchez » 2015-12-30 16:40

Hello. This post is very old. However I am looking for doing the same. I have 2 servers set into a failover cluster, I need to have the config file shared to both servers so that, when I do any change in the online server, if it fails over for any reason, the offline server will have filezilla updated as well. I cannot find the docs folder in my windows installation. Can you please give me any instructions?

User avatar
boco
Contributor
Posts: 24915
Joined: 2006-05-01 03:28
Location: Germany

Re: Shared configuration file

#4 Post by boco » 2015-12-31 05:09

The docs subdirectory is in the Program directory of FileZilla (usually Program Files), next to the resources directory. It is not in the settings directory!
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

javiersanchez
500 Command not understood
Posts: 4
Joined: 2015-12-30 16:36
First name: Javier
Last name: Sanchez

Re: Shared configuration file

#5 Post by javiersanchez » 2015-12-31 11:06

Thanks a lot for your answer. But I do not see any documentation or docs folder. Actuallly, I do not see any subfolder at all. Maybe that is because when installing, someone decided not to install documentation'
Is there another place I can find that?
Also, I was thinking, maybe changing installation directory at the moment of running the installer, into a common place may help. Do you think that would work?

Thank you a lot in advance!

GotZilla
500 Syntax error
Posts: 12
Joined: 2015-12-31 14:39

Re: Shared configuration file

#6 Post by GotZilla » 2015-12-31 17:25

The example file is located here on my system:

C:\Program Files (x86)\FileZilla FTP Client\docs\fzdefaults.xml.example

If your Filezilla is installed elsewhere than program files, you should check there.

The easiest way to find where it's installed is to right click the shortcut icon, select "Properties" and then click "File location".

One way to share the same config file is to use symlinks on both systems that point to the same network location.

User avatar
boco
Contributor
Posts: 24915
Joined: 2006-05-01 03:28
Location: Germany

Re: Shared configuration file

#7 Post by boco » 2016-01-01 02:58

Here's the template usually found in ./docs. Adapt to your needs, save as fzdefaults.xml next to FileZilla.exe.

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<!-- fzdefaults.xml documentation

  The file fzdefaults.xml is used to provide system-wide default settings for
  FileZilla.

  Usage:

    - Windows:

      Put the file fzdefaults.xml into the same directory as filezilla.exe

    - OS X:

      Modify the app bundle, put fzdefaults.xml into the
      Contents/SharedSupport/ subdirectory

    - Other:

      Put fzdefaults.xml into one of the following directories (in order of precedence):

      - ~/.filezilla
      - /etc/filezilla
      - share/filezilla subdirectory of the install prefix.

  Default site manager entries:

    Create some new Site Manager entries and export the list of sites. Rename
    the resulting XML file to fzdefaults.xml or copy the <Servers> block in it
    to fzdefaults.xml. See example below.

  Global configuration settings

    Location of settings directory:

      By default, FileZilla stores its settings in the user's home directory. If
      you want to change this location, modify the "Config Location" setting (see
      below).

      "Config Location" either accepts absolute paths or paths relative to the
      location of fzdefaults.xml
      You can also use environment variables by preceding them with the dollar
      sign, e.g. "$HOME/foo".
      Use $$ to denote a path containing dollar signs, e.g. "c:\$$foobar\" if
      settings should be located in "c:\$foobar".
      A single dot denotes the directory containing fzdefaults.xml

    Kiosk mode

      If the "Kiosk mode" setting is set to 1, FileZilla will not write any
      passwords to disk. If set to 2, FileZilla will not write to any
      configuration file. The latter is useful if FileZilla gets executed from
      read-only media.

    Disable update check

      If the "Disable update check" setting is set to 1, the capability to
      check for new FileZilla versions will be completely disabled.

-->

<FileZilla3>
  <Settings>
    <Setting name="Config Location">$SOMEDIR/filezilla/</Setting>
    <Setting name="Kiosk mode">0</Setting>
    <Setting name="Disable update check">0</Setting>
  </Settings>
  <Servers>
    <Server>
      <Host>ftp.gnu.org</Host>
      <Port>21</Port>
      <Protocol>0</Protocol>
      <Type>0</Type>
      <Logontype>0</Logontype>
      <User>anonymous</User>
      <Pass>someone@example.com</Pass>
      <TimezoneOffset>0</TimezoneOffset>
      <PasvMode>MODE_DEFAULT</PasvMode>
      <MaximumMultipleConnections>0</MaximumMultipleConnections>
      <EncodingType>Auto</EncodingType>
      <Comments></Comments>
      <LocalDir></LocalDir>
      <RemoteDir></RemoteDir>Primary GNU download server
    </Server>
  </Servers>
</FileZilla3>
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

javiersanchez
500 Command not understood
Posts: 4
Joined: 2015-12-30 16:36
First name: Javier
Last name: Sanchez

Re: Shared configuration file

#8 Post by javiersanchez » 2016-01-07 12:34

Oh wait, I'm sorry if I was unclear. I was talking about filezilla server, not the client.

User avatar
boco
Contributor
Posts: 24915
Joined: 2006-05-01 03:28
Location: Germany

Re: Shared configuration file

#9 Post by boco » 2016-01-07 13:27

I see. Posting into the appropriate forum would have avoided the confusion.

The configuration location of FileZilla Server is hardcoded and cannot be changed. But you could use a third-party software to replicate "FileZilla Server.xml" if it changes.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

javiersanchez
500 Command not understood
Posts: 4
Joined: 2015-12-30 16:36
First name: Javier
Last name: Sanchez

Re: Shared configuration file

#10 Post by javiersanchez » 2016-01-08 03:10

Yeah I'm sorry for that. I got here googling and didn't realize until right now about the path. Thanks anyway for your effort in helping me out.

Post Reply