How-to: Preconfigure Space Path - Space-Ort Vorkonfigurieren

Practical instruction and advice on how to take advantage of TeamDrive's features - Praktische Anleitung und Ratschläge zur Nutzung der Vorteile von TeamDrive.

How-to: Preconfigure Space Path - Space-Ort Vorkonfigurieren

Postby Kenneth » 30 Jul 2019, 10:42

Top: English
Darunter: Deutsch
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Globally Preconfigure Default Space Location

Postby Kenneth » 30 Jul 2019, 10:45

To change/preconfigure the Spaces directory without using the user interface you need to:

A) enter the absolute path directly into the "teamdrive.settings" file (which affects the account's client settings, i.e. the Windows user account) or into the "teamdrive.ini" file (which affects the machine's global client settings, i.e. applies to all TeamDrive installations on the machine). Each setting must be placed on its own individual line and the file encoding must be UTF-8.

or

B) set the absolute path via the server as a provider global client setting (https://docs.teamdrive.net/RegServer/4.1.1/html/TeamDrive-Registration-Server-Reference-Guide-en/Doc-Settings/Provider_LoginAndReg_Settings.html#spaces-path).




Entering the setting into the "teamdrive.settings" file.

The "teamdrive.settings" file is located in the default location of the TeamDrive database (data directory). Even if the TeamDrive database location has been changed, the "teamdrive.settings" file will still be in the original location (it will not be moved along with database).

The following link explains where and how to find the TeamDrive data directory: https://forum.teamdrive.net/viewtopic.php?f=22&t=3376#p9779

Once you have found the "teamdrive.settings" file, please do the following:

- Quit TeamDrive.

- Open the "teamdrive.settings" file with a text editor.

- In the section "[Settings]" enter the absolute path of the new Spaces directory. Please be aware that the absolute path should be entered using Unix-style slashes (e.g. '/'). Here is an example of an absolute path for a Windows machine, "spaces-path=C:/Users/*User*/Documents/*NewSpacesDirectory*/"

- The absolute path should be entered where you see "spaces-path=". If this entry is not already in the '[Settings]' section, add it while defining the absolute path.
***IMPORTANT***
The platform type can be specified for every TeamDrive setting and will cause the setting to only be applied matching platforms. The platform types may be combined together and each will be appended to the setting name with "-<plattform>".

Platform types:

-win
-unix (will be applied on Linux AND Mac OS X)
-mac
-linux
-mobile (will be applied on Android AND iOS)
-android
-ios
-agent

Here are some examples of absolute paths, which will only be appled to specific platforms:

spaces-path-unix-agent=/foo/bar/Spaces
spaces-path-win=C:/foo/bar/Spaces
spaces-path-win-agent=//server/foo/bar/Spaces

- Save your changes.




Entering the setting into the "teamdrive.ini" file.

The "teamdrive.ini" file can be found:

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 be advised, that when entering settings into the "teamdrive.ini" file, a "[Settings]" section must not be used. Sections are not supported in the "teamdrive.ini" file.

- Save your changes
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Standard-Space-Ort Global Vorkonfigurieren

Postby Kenneth » 30 Jul 2019, 10:46

Um das Standard-Spaces-Verzeichnis zu ändern oder vorzukonfigurieren, ohne die Benutzeroberfläche zu verwenden, machen Sie bitte Folgendes:

A) geben Sie den absoluten Pfad direkt in die "teamdrive.settings"-Datei (die sich auf die Client-Einstellungen des Accounts, d.h. das Windows-Benutzerkonto, auswirkt) oder in die "teamdrive.ini"-Datei (die sich auf die globalen Client-Einstellungen des Rechners auswirkt, d.h. für alle TeamDrive-Installationen auf dem Rechner gilt). Jede Einstellung muss in einer eigenen Zeile geschrieben werden und die Dateikodierung muss UTF-8 sein.

oder

B) den absoluten Pfad über den Server als globale Client-Einstellung des Providers festlegen (https://docs.teamdrive.net/RegServer/4.1.1/html/TeamDrive-Registration-Server-Reference-Guide-en/Doc-Settings/Provider_LoginAndReg_Settings.html#spaces-path).



Wie werden die Einstellungen in die "teamdrive.settings"-Datei eingetragen?

Die Datei "teamdrive.settings" befindet sich am Standardspeicherort der TeamDrive-Datenbank (Datenverzeichnis). Auch wenn der Speicherort der TeamDrive-Datenbank geändert wurde, befindet sich die "teamdrive.settings"-Datei weiterhin am ursprünglichen Speicherort, da sie nicht mit der Datenbank verschoben wird.

Wo und wie Sie das TeamDrive Datenverzeichnis finden, erfahren Sie unter folgendem Link: https://forum.teamdrive.net/viewtopic.php?f=22&t=3376#p9780

Wenn Sie die "teamdrive.settings"-Datei gefunden haben, machen Sie bitte Folgendes:

- Beenden Sie TeamDrive.

- Öffnen Sie die "teamdrive.settings"-Datei mit einem Texteditor.

- Geben Sie im Abschnitt "[Settings]" den absoluten Pfad des neuen Spaces-Verzeichnisses ein. Bitte beachten Sie, dass der absolute Pfad mit Schrägstrichen im Unix-Stil eingegeben werden sollte (z.B.'/'). Hier ist ein Beispiel für einen absoluten Pfad für einen Windows-Rechner, "spaces-path=C:/Users/UserDocuments/NewSpacesDirectory/".

- Suchen Sie den Eintrag "spaces-path=", um den neuen Pfad dort einzutragen. Wenn sich dieser Eintrag noch nicht im Abschnitt "[Settings]" befindet, fügen Sie den Eintrag hinzu.
***WICHTIG***
Der Plattformtyp kann für jede TeamDrive-Einstellung angegeben werden und bewirkt, dass die Einstellung nur für passende Plattformen angewendet wird. Die Plattformtypen können miteinander kombiniert werden und werden jeweils mit "-<plattform>" an den Namen der Einstellung angehängt.

Platformtypen:

-win
-unix (wird auf Linux UND Mac OS X angewendet.)
-mac
-linux
-mobile (wird auf Android UND iOS angewendet.)
-android
-ios
-agent

Hier sind einige Beispiele für absolute Pfade, die nur auf bestimmte Plattformen angewendet werden:

spaces-path-unix-agent=/foo/bar/Spaces
spaces-path-win=C:/foo/bar/Spaces
spaces-path-win-agent=//server/foo/bar/Spaces

- Speichern Sie Ihre Änderungen.



Wie werden die Einstellungen in die "teamdrive.ini"-Datei eingetragen?

Sie finden die "teamdrive.ini"-Datei auf den unterschiedlichen Plattformen wie folgt:

Mac
/Users/Shared/teamdrive.ini

Windows
C:\ProgramData\TeamDrive\teamdrive.ini

Linux
/etc

- Öffnen Sie die "teamdrive.ini"-Datei mit einem Texteditor.

- Geben Sie die absolute(n) Pfadeinstellung(en) wie oben beschrieben ein. Bitte beachten Sie, dass bei der Eingabe von Einstellungen in die "teamdrive.ini"-Datei kein Abschnitt "[Einstellungen]" verwendet werden darf. Abschnitte werden in der "teamdrive.ini"-Datei nicht unterstützt.

- Speichern Sie Ihre Änderungen.
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11


Return to How-tos - Kurze Anleitungen

Who is online

Users browsing this forum: No registered users and 5 guests

cron