TntDrive-Befehlszeile - Amazon S3-Laufwerke erstellen, ändern und entfernen
TntDrive
Die Cloud zum Greifen nah
 

Befehlszeilenschnittstelle

Seit Version 5.1.1 bietet TntDrive eine Befehlszeilenschnittstelle zur Verwaltung zahlreicher Programmeinstellungen.

Die ausführbare Datei heißt tntdrive-cli.exe und liegt im Installationsordner (normalerweise C:\Program Files\TntDrive)

Aufrufsyntax:

tntdrive-cli.exe /object command [parameters]

Verfügbare Objekte: account, drive, license, ui, temp, throttling, logging, proxy.

Konto

Das Objekt Konto ermöglicht die Verwaltung der Speicherkonten.

Verfügbare Befehle: add, update, show, delete, update-credentials

Der Dialog add fügt ein neues Speicherkonto hinzu.

To add new account please use the following syntax:

/account add name type [properties]

name - any name you would like to assign to your account

type - account type code as shown below:

   0: Amazon S3
   7: Amazon S3 (FIPS 140-3)
   1: Amazon S3 Compatible Storage
   4: Amazon S3 via EC2 IAM Role
  44: Amazon S3 via AssumeRole
   5: Amazon S3 via Environment Variables
   6: Amazon S3 via AWS Config or Credentials File
   3: Amazon S3 GovCloud
  33: Amazon S3 GovCloud (FIPS 140-3)
  34: Amazon S3 GovCloud via EC2 IAM Role
  35: Amazon S3 GovCloud via AssumeRole
  36: Amazon S3 GovCloud via Environment Variables
  37: Amazon S3 GovCloud via AWS Config or Credentials File
   2: Amazon S3 in China
   8: Amazon S3 European Sovereign Cloud

properties - account type-specific properties:

  for Amazon S3, Amazon S3 (FIPS 140-3), Amazon S3 in China,
      Amazon S3 GovCloud, Amazon S3 GovCloud (FIPS 140-3),
      Amazon S3 European Sovereign Cloud:
	access-key-id secret-access-key

  for Amazon S3 Compatible Storage:
	rest-endpoint access-key-id secret-access-key signature-version addressing-model

  for Amazon S3 via EC2 IAM Role, Amazon S3 via Environment Variables,
      Amazon S3 GovCloud via EC2 IAM Role,
      Amazon S3 GovCloud via Environment Variables:
	there are no account type specific properties

  for Amazon S3 via AssumeRole, Amazon S3 GovCloud via AssumeRole:
	role-arn [external-id] source-account

  for Amazon S3 via AWS Config or Credentials File,
      Amazon S3 GovCloud via AWS Config or Credentials File:
	credentials-file credentials-file-profile

The command without [properties] returns account-specific properties description

Die kontotypspezifische Hilfe beschreibt die jeweiligen Eigenschaften.

Folgender Befehl zeigt die Hilfe zu den Parametern für ein Amazon S3-Konto:

	
tntdrive-cli /account add "test account" 0

	
To add new Amazon S3 account please use the following syntax:

/account add name 0 access-key-id secret-access-key

  name - any name you would like to assign to your account

  type - account type code (0 for Amazon S3)

  access-key-id - Your Access Key Id, more details at https://tntdrive.com/keys

  secret-access-key - Your Secret Access Key, more details at https://tntdrive.com/keys
	

tntdrive-cli /account add "test account" 0 AKIASAMPLEACCESSKEY RRll9kp9UgIi7HjKkLkOKmN9<..>

Für ein mit Amazon S3 kompatibles Speicherkonto:

tntdrive-cli /account add "test account" 1
To add new Amazon S3 compatible storage account please use the following syntax:

/account add name 1 rest-endpoint access-key-id secret-access-key signature-version addressing-model

  name - any name you would like to assign to your account

  type - account type code (1 for Amazon S3 compatible storage)

  rest-endpoint - Amazon S3 compatible API endpoint, for example: api.server.com or https://172.30.2.111:1784

  access-key-id - Your Access Key Id, more details at https://tntdrive.com/keys

  secret-access-key - Your Secret Access Key, more details at https://tntdrive.com/keys

  signature-version - Allowed values: 2 or 4. Version 4 is recommended when supported by the storage

  addressing-model - Specify 0 for Path style and 1 for Virtual hosted style
tntdrive-cli /account add wasabi 1 s3.wasabisys.com AKIASAMPLEACCESSKEY tVj5PY10zpklCN8YBRDjauuhNKqpY8MTr 4 1

Der Dialog update ändert die Kontoeigenschaften.

To update account properties please use the following syntax:

/account update name-or-id property-name property-value

  name-or-id     - the name of the account you want to update,
                   you may also use account id

  property-name  - the name of the property you want to update,
                   to find the list of supported properties,
                   please check out the help for the 'add' command

  property-value - the new value for the property

Beispiel:

tntdrive-cli /account update local-st rest-endpoint https://172.30.2.111:1784

oder

tntdrive-cli /account update test-acc access-key-id AKIAT5ZWU75WMOVK3C5W

Der Dialog show zeigt die Kontoeigenschaften an.

To show account details please use the following syntax:

/account show name-or-id

  name-or-id - the name of the account you want to show details for
               (wildcards supported), you may also use account id

Beispiel:

tntdrive-cli /account show wasabi-test

Ausgabe:

Amazon S3 compatible storage
----------------------------------------
Name: wasabi-test
Id: 24e2e05d
REST Endpoint: s3.wasabisys.com
Region-specific Endpoint:
Signature Version: Signature V4
Addressing Model: Virtual hosted style
AccessKeyId: **********************
SecretAccessKey: **************************************
SSL/TLS: True

Der Dialog delete löscht ein oder mehrere Konten.

To delete account please use the following syntax:

/account delete name-or-id

  name-or-id - the name of the account you want to delete
               (wildcards supported), you may also use account id

Beispiel:

tntdrive-cli /account delete wasabi-test

Der Dialog update-credentials aktualisiert Zugangsdaten aus einer AWS-Konfigurations- oder Zugangsdatendatei. Dies kann nützlich sein, wenn der gewählte Kontotyp temporäre Daten nicht direkt unterstützt, etwa ein GovCloud-Konto.

Der Befehl kopiert Zugriffsschlüssel und Sitzungstoken aus der Datei in ein zuvor angelegtes Konto.

To update account credentials from AWS config or credentials file:

/account update-credentials name-or-id config-file profile-name

  name-or-id   - the name of the account you want to update
                 credentials for, you may also use account id

  config-file  - path to AWS config or credentials file

  profile-name - profile name in AWS config or credentials file

Beispiel:

tntdrive-cli /account update-credentials test %USERPROFILE%\.aws\config default

Laufwerk

Der Dialog Laufwerk ermöglicht die Verwaltung der Laufwerke.

Verfügbare Befehle: add, update, list, show, stop, start, reset-cache, delete.

Der Dialog add fügt ein neues Laufwerk hinzu.

To add the drive please use the following syntax:

/drive add account-name bucket-name/path drive-letter

  account-name - the name of the account to assign to the drive

  bucket-name  - the name of the bucket to map

  path         - optional directory/subdirectory in the bucket

  drive-letter - drive letter to assign to the drive

Beispiel:

tntdrive-cli /drive add "test account" mybucket/subdir E

Weitere Eigenschaften finden Sie mit dem Befehl update .

Der Dialog update ändert Laufwerkseigenschaften.

To update drive properties please use the following syntax:

/drive update drive-letter property-name property-value

  drive-letter   - the letter of the drive you want to update
                   specify * to set property for all drives

  property-name  - the name of the property you want to update

  property-value - the new value for the property

Supported properties are:

  account-name:       the name of the account assigned to the drive
  bucket-and-path:    bucket name and optional path, use the slash symbol (/) as a delimiter
  read-only:          enable read-only mode - true/false
  drive-type:         drive type, supported values are: Removable, Network
  drive-letter:       new drive letter for the drive, drive letter must be available (unused)
  enabled:            drive is enabled(active) - true/false
  network-access:     enable drive availability over the local network - true/false
  win32-attributes:   enable win32 attributes emulation (may work slow!) - true/false
  default-sc:         default storage class for all new files, supported values are:
                      STANDARD, STANDARD_IA, ONEZONE_IA, GLACIER, DEEP_ARCHIVE, INTELLIGENT_TIERING
  sse:                enable server-side encryption - true/false
  ta:                 enable transfer acceleration - true/false
  requester-pays:     enable the requester-pays feature - true/false
  cache-file-info:    enable file information caching - true/false
  cache-dir-listings: enable directory listings caching - true/false
  cache-rr:           enable read requests caching - true/false
  rr-max-file-size:   max file size in megabytes to cache read requests for
  rr-max-cache-size:  max read requests cache size on local disk in megabytes
  read-prefetching:   enable file prefetching for read requests - true/false
  rp-max-file-size:   max file size in megabytes to prefetch
  cache-ttl:          time to live of cached data in seconds

Beispiel:

tntdrive-cli /drive update E bucket-and-path my-backups-bucket/documents/2021

Der Dialog list zeigt eine Kurzübersicht aller Laufwerke.

To list all mapped drives please use the following syntax:

/drive list

Beispiel:

tntdrive-cli /drive list

Ausgabe:

Letter  Path                  Account          Enabled
-------------------------------------------------------
O:      nas-backups-office    backups-acc      True
H:      nas-backups-home      backups-acc      True
E:      my-bucket-2021        test account     True

Der Dialog show zeigt sämtliche Laufwerkseigenschaften.

To show drive details please use the following syntax:

/drive show drive-letter

  drive-letter - the letter of the drive to show the details for,
                 specify * to show the details for all drives

Beispiel:

tntdrive-cli /drive show P

Ausgabe:

Drive:
  AccountId: 5be6bc6b
  Path: nas-backups-office
  Id: 5832def1
  ReadOnly: False
  DriveType: Network
  DriveLetter: P:
  DriveLabel: nas-backups-office
  Enabled: True
  AllowNetworkAccess: False
  EnableWin32AttributesEmulation: False
  AmazonS3Options
    DefaultStorageClass: STANDARD
    Server-Side Encryption: False
    TranserAcceleration: False
    RequesterPays: False
  Caching:
    CacheFileInfo: True
    CacheDirListings: True
    CacheReadRequests: True
    ReadRequestsMaxFileSizeMb: 10
    ReadRequestsMaxCacheSizeMb: 1024
    ReadPrefetching: True
    ReadPrefetchingMaxFileSizeMb: 3
    TTLSeconds: 60

Der Dialog stop und start halten das Laufwerk an bzw. starten es.

To start the drive please use the following syntax:

/drive start drive-letter

  drive-letter - the letter of the drive to start,
                 specify * to start all drives
To stop the drive please use the following syntax:

/drive stop drive-letter

  drive-letter - the letter of the drive to stop,
                 specify * to start all drives

Beispiel:

tntdrive-cli /drive stop P
tntdrive-cli /drive start P

Der Dialog reset-cache setzt Datei-, Verzeichnis- und Lesecaches für ein oder mehrere Laufwerke zurück.

To reset the cache for the drive please use the following syntax:

/drive reset-cache drive-letter

  drive-letter - the letter of the drive to reset cache for,
                 specify * to reset cache for all drives

Beispiel:

tntdrive-cli /drive reset-cache P

Mit dem Befehl delete löschen Sie ein oder mehrere Laufwerke.

To delete the drive please use the following syntax:

/drive delete drive-letter

  drive-letter - the letter of the drive to delete,
                 specify * to delete all drives

Beispiel:

tntdrive-cli /drive delete P

Lizenz

Der Dialog Lizenz stellt Lizenzbefehle bereit.

Verfügbare Befehle: show, get-hwid, activate, deactivate.

Der Dialog show zeigt den aktuellen Lizenzstatus.

To get current licensing status please use the following syntax:

/license show

Beispiel:

tntdrive-cli /license show

Ausgabe:

TntDrive 6.3.9 - Registered version

Der Dialog get-hwid zeigt die Hardware-ID des Rechners.

To get machine hardware ID please use the following syntax:

/license get-hwid

Beispiel:

tntdrive-cli /license get-hwid

Ausgabe:

5bc633bcaea9109e1b3b78fa4bf9257c

Der Dialog activate aktiviert die TntDrive-Lizenz.

To activate the license please use the following syntax:

/license activate license-key

  license-key - TntDrive license key

Beispiel:

tntdrive-cli /license activate YOUR-TNTDRIVE-LICENSE-KEY

Ausgabe:

Please wait, connecting activation server..
Your license has been successfully activated. Thank you!

Der Dialog deactivate deaktiviert die TntDrive-Lizenz.

To deactivate the license please use the following syntax:

/license deactivate

Beispiel:

tntdrive-cli /license deactivate

Ausgabe:

Please wait, connecting activation server..
Your license has been successfully deactivated.

UI

Der Dialog UI ändert Einstellungen der Benutzeroberfläche.

Verfügbare Befehle: hide-access-keys, hide-advanced-drive-properties.

Der Dialog hide-access-keys maskiert Zugriffsschlüssel-ID und geheimen Schlüssel in der Kontoverwaltung.

To disable access keys visibility in UI please use the following syntax:

/ui hide-access-keys true|false

  true|false - true to not show access keys in UI and false otherwise

Beispiel:

tntdrive-cli /ui hide-access-keys true

Der Dialog hide-advanced-drive-properties blendet den Link Erweiterte Laufwerkseigenschaften in der Oberfläche aus.

To disable advanced drive properties visibility in UI please use the following syntax:

/ui hide-advanced-drive-properties true|false

  true|false - true to disable advanced drive properties and false otherwise

Beispiel:

tntdrive-cli /ui hide-advanced-drive-properties true

Temporärer Ordner

Der Dialog Temporärer Ordner zeigt oder ändert den temporären Ordner.

Verfügbare Befehle: get, set.

Der Dialog get zeigt den aktuellen temporären Ordner.

To get current temp folder location please use the following syntax:

/temp get

Beispiel:

tntdrive-cli /temp get

Ausgabe:

C:\Temp\TntDrive

Der Dialog set legt den temporären Ordner fest.

To set temp folder location please use the following syntax:

/temp set path

  path - new temp folder location

Beispiel:

tntdrive-cli /temp set D:\TntDrive

Bandbreitenbegrenzung

Der Dialog Bandbreitenbegrenzung zeigt oder ändert die Bandbreitenbegrenzung.

Verfügbare Befehle: get, set.

Der Dialog get zeigt die aktuelle Bandbreitenbegrenzung.

To get current bandwidth throttling settings please use type:

/throttling get

Beispiel:

tntdrive-cli /throttling get

Ausgabe:

Disabled

Der Dialog set legt die Bandbreitenbegrenzung fest.

To set bandwidth throttling please use the following syntax:

/throttling set max-kbps-per-thread

  max-kbps-per-thread - max KB/s per thread (0 to disable throttling)

Beispiel:

tntdrive-cli /throttling set 256

Protokollierung

Der Dialog Protokollierung zeigt oder ändert die Protokollierung.

Verfügbare Befehle: get, set.

Der Dialog get zeigt die aktuellen Protokolleinstellungen.

To get current logging settings please use the following syntax:

/logging get

Beispiel:

tntdrive-cli /logging get

Ausgabe:

Brief

Der Dialog set legt die Protokollierung fest.

To set logging level please use the following syntax:

/logging set logging-level

logging-level - supported levels are: Verbose, Brief, WarningsAndErrors

Beispiel:

tntdrive-cli logging set Verbose

Proxy

Der Dialog Proxy zeigt oder ändert die Proxy-Einstellungen.

Verfügbare Befehle: get, set.

Der Dialog get zeigt die aktuellen Proxy-Einstellungen.

To get current proxy settings please use the following syntax:

/proxy get

Beispiel:

tntdrive-cli /proxy get

Ausgabe:

DoNotUseProxy

Der Dialog set legt die Proxy-Einstellungen fest.

To set proxy settings please use the following syntax:

/proxy set proxy-type [host port [username] [password] [domain]]

  proxy-type - supported types are: DoNotUseProxy, AutoDetect, UserDefined

  for UserDefined proxy type the following additional parameters required:

    host     - proxy address
    port     - proxy port

  if your proxy server requires authentication the following additional parameters required:

    username - username to authenticate on proxy server
    password - password to authenticate on proxy server
    domain   - (optional) domain to authenticate on proxy server

Beispiel:

tntdrive-cli proxy set UserDefined 192.168.2.22 8080
Voll funktionsfähige Testversion
Powered by Amazon Web Services
Weitere Produkte
TntDrive wird von Netsdk Software FZE entwickelt und ist weder mit Amazon oder AWS verbunden noch von diesen empfohlen oder gesponsert. Amazon S3 und Amazon S3 Glacier sind Marken von Amazon.com, Inc. oder verbundenen Unternehmen.
Copyright © 2008-2026 Netsdk Software FZE. Alle Rechte vorbehalten.  Nutzungsbedingungen (Englisch).  Datenschutzerklärung (Englisch).  Erstattungsrichtlinie (Englisch).  CS Browser.  RDP vor Brute Force schützen.