Interfaz de línea de comandosDesde la versión 5.1.1, TntDrive incluye una interfaz de línea de comandos para administrar los ajustes del programa. El archivo ejecutable se llama tntdrive-cli.exe y se encuentra en la carpeta de instalación (normalmente C:\Program Files\TntDrive) Sintaxis: tntdrive-cli.exe /object command [parameters] Objetos disponibles: account, drive, license, ui, temp, throttling, logging, proxy. CuentaEl objeto Cuenta permite administrar cuentas de almacenamiento. Comandos disponibles: add, update, show, delete, update-credentials El cuadro de diálogo add añade una cuenta de almacenamiento.
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 descriptionLa ayuda específica de cada tipo de cuenta describe sus propiedades. El siguiente comando muestra ayuda sobre los parámetros de una cuenta de 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<..> Para una compatible con Amazon S3 cuenta de almacenamiento: 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 El cuadro de diálogo update modifica las propiedades de la cuenta.
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 propertyEjemplo: tntdrive-cli /account update local-st rest-endpoint https://172.30.2.111:1784 o tntdrive-cli /account update test-acc access-key-id AKIAT5ZWU75WMOVK3C5W El cuadro de diálogo show muestra las propiedades de la cuenta.
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 idEjemplo: tntdrive-cli /account show wasabi-test Resultado: 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 El cuadro de diálogo delete elimina una o varias cuentas.
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 idEjemplo: tntdrive-cli /account delete wasabi-test El cuadro de diálogo update-credentials actualiza credenciales desde un archivo de AWS. Puede resultar útil si el tipo de cuenta no admite directamente credenciales temporales, por ejemplo una cuenta de GovCloud. El comando copia las claves y el token de sesión del archivo a una cuenta ya añadida.
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 fileEjemplo: tntdrive-cli /account update-credentials test %USERPROFILE%\.aws\config default UnidadEl cuadro de diálogo Unidad permite administrar unidades. Comandos disponibles: add, update, list, show, stop, start, reset-cache, delete. El cuadro de diálogo add añade una unidad. 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 Ejemplo: tntdrive-cli /drive add "test account" mybucket/subdir E Las propiedades adicionales están disponibles con el comando update . El cuadro de diálogo update modifica las propiedades de la unidad.
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 secondsEjemplo: tntdrive-cli /drive update E bucket-and-path my-backups-bucket/documents/2021 El cuadro de diálogo list muestra un resumen de todas las unidades. To list all mapped drives please use the following syntax: /drive list Ejemplo: tntdrive-cli /drive list Resultado: 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 El cuadro de diálogo show muestra todas las propiedades de la unidad.
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 drivesEjemplo: tntdrive-cli /drive show P Resultado:
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: 60El cuadro de diálogo stop y start detienen o inician la unidad.
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 drivesEjemplo: tntdrive-cli /drive stop P tntdrive-cli /drive start P El cuadro de diálogo reset-cache restablece las cachés de información de archivos, carpetas y lecturas de una o varias unidades.
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 drivesEjemplo: tntdrive-cli /drive reset-cache P Con el comando delete puede eliminar una o varias unidades.
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 drivesEjemplo: tntdrive-cli /drive delete P LicenciaEl cuadro de diálogo Licencia proporciona comandos de licencia. Comandos disponibles: show, get-hwid, activate, deactivate. El cuadro de diálogo show muestra el estado de la licencia. To get current licensing status please use the following syntax: /license show Ejemplo: tntdrive-cli /license show Resultado: TntDrive 6.3.9 - Registered version El cuadro de diálogo get-hwid muestra el ID de hardware del equipo. To get machine hardware ID please use the following syntax: /license get-hwid Ejemplo: tntdrive-cli /license get-hwid Resultado: 5bc633bcaea9109e1b3b78fa4bf9257c El cuadro de diálogo activate activa la licencia de TntDrive. To activate the license please use the following syntax: /license activate license-key license-key - TntDrive license key Ejemplo: tntdrive-cli /license activate YOUR-TNTDRIVE-LICENSE-KEY Resultado: Please wait, connecting activation server.. Your license has been successfully activated. Thank you! El cuadro de diálogo deactivate desactiva la licencia de TntDrive. To deactivate the license please use the following syntax: /license deactivate Ejemplo: tntdrive-cli /license deactivate Resultado: Please wait, connecting activation server.. Your license has been successfully deactivated. UIEl cuadro de diálogo UI permite editar ajustes de interfaz. Comandos disponibles: hide-access-keys, hide-advanced-drive-properties. El cuadro de diálogo hide-access-keys oculta las claves de acceso en el administrador de cuentas. 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 Ejemplo: tntdrive-cli /ui hide-access-keys true El cuadro de diálogo hide-advanced-drive-properties oculta el enlace Propiedades avanzadas de la unidad en la interfaz. 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 Ejemplo: tntdrive-cli /ui hide-advanced-drive-properties true Carpeta temporalEl cuadro de diálogo Carpeta temporal muestra o modifica la carpeta temporal. Comandos disponibles: get, set. El cuadro de diálogo get muestra la carpeta temporal actual. To get current temp folder location please use the following syntax: /temp get Ejemplo: tntdrive-cli /temp get Resultado: C:\Temp\TntDrive El cuadro de diálogo set define la carpeta temporal. To set temp folder location please use the following syntax: /temp set path path - new temp folder location Ejemplo: tntdrive-cli /temp set D:\TntDrive Limitación de ancho de bandaEl cuadro de diálogo Limitación de ancho de banda muestra o modifica la limitación de ancho de banda. Comandos disponibles: get, set. El cuadro de diálogo get muestra los límites actuales de ancho de banda. To get current bandwidth throttling settings please use type: /throttling get Ejemplo: tntdrive-cli /throttling get Resultado: Disabled El cuadro de diálogo set define los límites de ancho de banda. 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) Ejemplo: tntdrive-cli /throttling set 256 RegistrosEl cuadro de diálogo Registros muestra o modifica el registro. Comandos disponibles: get, set. El cuadro de diálogo get muestra la configuración actual de registro. To get current logging settings please use the following syntax: /logging get Ejemplo: tntdrive-cli /logging get Resultado: Brief El cuadro de diálogo set define la configuración de registro. To set logging level please use the following syntax: /logging set logging-level logging-level - supported levels are: Verbose, Brief, WarningsAndErrors Ejemplo: tntdrive-cli logging set Verbose ProxyEl cuadro de diálogo Proxy muestra o modifica el proxy. Comandos disponibles: get, set. El cuadro de diálogo get muestra la configuración actual de proxy. To get current proxy settings please use the following syntax: /proxy get Ejemplo: tntdrive-cli /proxy get Resultado: DoNotUseProxy El cuadro de diálogo set define la configuración de 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 serverEjemplo: tntdrive-cli proxy set UserDefined 192.168.2.22 8080 | Prueba con todas las funciones Otros productos |