Related links
Developer Resources
Version history
Retrieve version details of a particular file on your IDrive account using
Version info API.
Syntax:
idevsutil --xml-output --password-file=<account password> --version-info <username>@<server address>::ibackup/<File path name for which you would like to retrieve version details>
- --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 will retrieve version details of “Inventory.ldb” file:
idevsutil --xml-output --password-file="MyPassword" --version-info john@<server address>::ibackup/C/Inventory.ldb
Output:
Sample XML output:
<item mod_time="2011/07/18 18:17:08" size="233423" ver="1"/>
<item mod_time="2011/07/18 18:17:14" size="233454" ver="2"/>
<item mod_time="2011/07/18 18:17:20" size="233485" ver="3"/>
Description:
The following details are displayed while retrieving version history:
- mod_time
Modified date time of the specified file
- size
Size of the specified file
- ver
Version details of specified file
You can make use of I / O redirection methods for redirecting IDrive EVS command line utility (idevsutil) output.