Command line utility (idevsutil) APIs

Development made easy: IDrive EVS APIs

Create directory

Create a new directory on the server side.
Syntax:
idevsutil --xml-output --password-file=<account password> --create-dir=<NEW NAME> --pvt-key=<key file path> <username>@<server address>::ibackup/PATH/
  • --pvt-key=PATH_OF_PVT_KEY_FILE
    Reads private encryption key for AES 256-bit encryption for all data transfers. Private encryption key length can vary from minimum of 4 characters to maximum of 255 characters. If you opt for the default encryption key during your IDrive account sign up then the use of the private encryption key is not required.
  • --password-file=PATH_OF_PSWD_FILE
    Reads account password from the specified file. Alternately, you can directly set the password using --password-file=<account password>
  • Username
    IDrive username. If you do not have a valid username Sign up with IDrive.
  • Server address:
    Use GetServerAddress API to retrieve the IDrive server address.
Code:
The following code is used to create a directory on the server side.
idevsutil --xml-output --password-file="MyPassword" --create-dir=TEMP --pvt-key=enc_key john@<server address>::ibackup/PATH/
The above-mentioned code can be executed using any programming language across any platform (Windows, Mac and Linux).

Output:
Sample XML output:
<item op ="create directory" dir_name="TEMP" op_status="success"/>
Description:
The following details are displayed while creating new directory:
  • op
    This attribute describes the operation
  • dir_name
    Name of the new directory created
  • op_status
    Status of the operation

You can make use of I / O redirection methods for redirecting IDrive EVS command line utility (idevsutil) output.

Refer code repository for more details on usage / implementation.