Command line utility (idevsutil) APIs

Development made easy: IDrive EVS APIs

Know the size of a particular folder / drive / volume

Know the size of folders / volume / drive on your IDrive account by using the GetSize API.
Syntax:
idevsutil --xml-output --password-file=<account password> --get-size <username>@<server address>::ibackup/<Folder path name>/
  • --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:
idevsutil --xml-output --password-file="MyPassword" --get-size john@<server address>::ibackup/C/Images/
Output:
Sample XML output:
<item folder_size="86437 Bytes"/>
<item files_count="3"/>
Description:
The following details are displayed during get folder size operation:
  • folder_size
    Size of the folder in bytes.
  • files_count
    This attribute displays the total number of files that are available within a folder.

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.