Interface en ligne de commandeDepuis la version 5.1.1, TntDrive propose une interface en ligne de commande pour gérer les paramètres du programme. Le fichier exécutable se nomme tntdrive-cli.exe et se trouve dans le dossier d'installation (généralement C:\Program Files\TntDrive) Syntaxe : tntdrive-cli.exe /object command [parameters] Objets disponibles : account, drive, license, ui, temp, throttling, logging, proxy. CompteL'objet Compte permet de gérer les comptes de stockage. Commandes disponibles : add, update, show, delete, update-credentials La boîte de dialogue add ajoute un compte de stockage.
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 descriptionL'aide propre au type de compte décrit ses paramètres. La commande suivante affiche l'aide des paramètres d'un compte Amazon S3: 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<..> Pour un compatible avec Amazon S3 compte de stockage : 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 La boîte de dialogue update modifie les propriétés du compte.
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 propertyExemple : tntdrive-cli /account update local-st rest-endpoint https://172.30.2.111:1784 ou tntdrive-cli /account update test-acc access-key-id AKIAT5ZWU75WMOVK3C5W La boîte de dialogue show affiche les propriétés du compte.
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 idExemple : tntdrive-cli /account show wasabi-test Résultat : 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 La boîte de dialogue delete supprime un ou plusieurs comptes.
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 idExemple : tntdrive-cli /account delete wasabi-test La boîte de dialogue update-credentials actualise les identifiants depuis un fichier AWS. Cela peut être utile si le type de compte utilisé ne prend pas directement en charge les identifiants temporaires, par exemple un compte GovCloud. Cette commande copie les clés et le jeton de session du fichier vers un compte déjà ajouté.
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 fileExemple : tntdrive-cli /account update-credentials test %USERPROFILE%\.aws\config default LecteurLa boîte de dialogue Lecteur permet de gérer les lecteurs. Commandes disponibles : add, update, list, show, stop, start, reset-cache, delete. La boîte de dialogue add ajoute un lecteur. 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 Exemple : tntdrive-cli /drive add "test account" mybucket/subdir E Les autres propriétés sont disponibles avec la commande update . La boîte de dialogue update modifie les propriétés du lecteur.
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 secondsExemple : tntdrive-cli /drive update E bucket-and-path my-backups-bucket/documents/2021 La boîte de dialogue list affiche un résumé des lecteurs. To list all mapped drives please use the following syntax: /drive list Exemple : tntdrive-cli /drive list Résultat : 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 La boîte de dialogue show affiche toutes les propriétés du lecteur.
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 drivesExemple : tntdrive-cli /drive show P Résultat :
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: 60La boîte de dialogue stop et start arrêtent ou démarrent le lecteur.
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 drivesExemple : tntdrive-cli /drive stop P tntdrive-cli /drive start P La boîte de dialogue reset-cache réinitialise les caches de fichiers, de dossiers et de lectures d'un ou plusieurs lecteurs.
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 drivesExemple : tntdrive-cli /drive reset-cache P La commande delete supprime un ou plusieurs lecteurs.
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 drivesExemple : tntdrive-cli /drive delete P LicenceLa boîte de dialogue Licence donne accès aux commandes de licence. Commandes disponibles : show, get-hwid, activate, deactivate. La boîte de dialogue show affiche l'état de licence. To get current licensing status please use the following syntax: /license show Exemple : tntdrive-cli /license show Résultat : TntDrive 6.3.9 - Registered version La boîte de dialogue get-hwid affiche l'identifiant matériel de l'ordinateur. To get machine hardware ID please use the following syntax: /license get-hwid Exemple : tntdrive-cli /license get-hwid Résultat : 5bc633bcaea9109e1b3b78fa4bf9257c La boîte de dialogue activate active la licence TntDrive. To activate the license please use the following syntax: /license activate license-key license-key - TntDrive license key Exemple : tntdrive-cli /license activate YOUR-TNTDRIVE-LICENSE-KEY Résultat : Please wait, connecting activation server.. Your license has been successfully activated. Thank you! La boîte de dialogue deactivate désactive la licence TntDrive. To deactivate the license please use the following syntax: /license deactivate Exemple : tntdrive-cli /license deactivate Résultat : Please wait, connecting activation server.. Your license has been successfully deactivated. UILa boîte de dialogue UI modifie certains paramètres d'interface. Commandes disponibles : hide-access-keys, hide-advanced-drive-properties. La boîte de dialogue hide-access-keys masque les clés d'accès dans le gestionnaire de comptes. 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 Exemple : tntdrive-cli /ui hide-access-keys true La boîte de dialogue hide-advanced-drive-properties masque le lien Propriétés avancées du lecteur dans l'interface. 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 Exemple : tntdrive-cli /ui hide-advanced-drive-properties true Dossier temporaireLa boîte de dialogue Dossier temporaire affiche ou modifie le dossier temporaire. Commandes disponibles : get, set. La boîte de dialogue get affiche le dossier temporaire actuel. To get current temp folder location please use the following syntax: /temp get Exemple : tntdrive-cli /temp get Résultat : C:\Temp\TntDrive La boîte de dialogue set définit le dossier temporaire. To set temp folder location please use the following syntax: /temp set path path - new temp folder location Exemple : tntdrive-cli /temp set D:\TntDrive Limitation du débitLa boîte de dialogue Limitation du débit affiche ou modifie la limitation du débit. Commandes disponibles : get, set. La boîte de dialogue get affiche la limitation actuelle du débit. To get current bandwidth throttling settings please use type: /throttling get Exemple : tntdrive-cli /throttling get Résultat : Disabled La boîte de dialogue set définit la limitation du débit. 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) Exemple : tntdrive-cli /throttling set 256 JournauxLa boîte de dialogue Journaux affiche ou modifie la journalisation. Commandes disponibles : get, set. La boîte de dialogue get affiche la journalisation actuelle. To get current logging settings please use the following syntax: /logging get Exemple : tntdrive-cli /logging get Résultat : Brief La boîte de dialogue set définit la journalisation. To set logging level please use the following syntax: /logging set logging-level logging-level - supported levels are: Verbose, Brief, WarningsAndErrors Exemple : tntdrive-cli logging set Verbose ProxyLa boîte de dialogue Proxy affiche ou modifie le proxy. Commandes disponibles : get, set. La boîte de dialogue get affiche le proxy actuel. To get current proxy settings please use the following syntax: /proxy get Exemple : tntdrive-cli /proxy get Résultat : DoNotUseProxy La boîte de dialogue set définit le proxy.
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 serverExemple : tntdrive-cli proxy set UserDefined 192.168.2.22 8080 | Essai avec toutes les fonctions Autres produits |