There are two methods to change or set the default Spaces directory without using the user interface:
enter the absolute path directly into the “teamdrive.settings” file (which affects the client settings of the account, i.e. the Windows user account) or into the “teamdrive.ini” file (which affects the global client settings of the computer, i.e. applies to all TeamDrive installations on the computer). Each setting must be written on a separate line and the file encoding must be UTF-8.
set the absolute path via the server as the global client setting of the provider (
further details in this document).
How are the settings entered in the “teamdrive.settings” file?
The file “teamdrive.settings” is located in the default location of the TeamDrive database (data directory). Even if the storage location of the TeamDrive database has been changed, the “teamdrive.settings” file is still in the original storage location, as it is not moved with the database.
Once you have found the “teamdrive.settings” file, please do the following:
Quit TeamDrive, then open the “teamdrive.settings” file with a text editor, then enter the absolute path of the new Spaces directory in the “[Settings]” section Please note that the absolute path should be entered with slashes in Unix style (e.g. ‘/’). Here is an example of an absolute path for a Windows computer, “spaces-path=C:/Users/UserDocuments/NewSpacesDirectory/”.
Look for the entry “spaces-path=” to enter the new path there. If this entry is not already in the “[Settings]” section, add the entry. The platform type can be specified for each TeamDrive setting and ensures that the setting is only applied to suitable platforms.
The platform types can be combined with each other and are each appended to the name of the setting with “-“.
Platform types:
– win, unix (used on Linux AND Mac OS X.), mac, linux, mobile (used on Android AND iOS.), android, ios, agent
Here are some examples of absolute paths that are only applied to certain platforms:
spaces-path-unix-agent=/foo/bar/Spaces
spaces-path-win=C:/foo/bar/Spaces
spaces-path-win-agent=//server/foo/bar/Spaces
After that you should definitely save your changes.
How are the settings entered in the “teamdrive.ini” file?
You can find the “teamdrive.ini” file on the different platforms as follows:
– Mac: /Users/Shared/teamdrive.ini
– Windows: C:\ProgramData\TeamDrive\teamdrive.ini
– Linux: /etc
Open the “teamdrive.ini” file with a text editor. Enter the absolute path setting(s) as described above. Please note that when entering settings in the “teamdrive.ini” file, no section “[Settings]” may be used. Sections are not supported in the “teamdrive.ini”-file. Save your changes.