Related links
Developer Resources
Status
Verifies the status for specified file(s) / folder(s) like existing, non-existing or exists in trash.
Syntax:
idevsutil --xml-output --password-file=<account password> --items-status --files-from=<path of filelist file> <username>@<server address>::ibackup/
- --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>
- --files-from=PATH_OF_FILE_LIST_FILE
Reads list of file(s) / folder(s) for which you wish to get the status.
- 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" --items-status --files-from =filelist john@<server address>::ibackup/C/DATA/
- Code / Output management
- This section explains about the sample code execution and the output generated for file(s) / folder(s) status operation.
Content of filelist file:
/C/DATA/
/C/OLD/
Code:
The following code will display status of file(s) / folder(s) specified in the filelist.
idevsutil --xml-output --password-file="MyPassword" --items-status --files-from =filelist john@<server address>::ibackup/C/DATA/
The above-mentioned code can be executed using any programming language across any platform (Windows, Mac and Linux).
Output:
Sample XML output:
<item status="file exists" fname="/C/DATA/Features.xls"/>
<item status="file exists" fname="/C/DATA/Image.jpg"/>
<item status="No such file or directory" fname="/C/OLD/"/>
<item status="No such file or directory" fname="/C/OLD/new.txt"/>
<item status="file exists in trash" fname="/C/DATA/Editors choice.rtf"/>
<item status="file exists in trash" fname="/C/DATA/FreeHand reviewJR.rtf"/>
Description:
The following details are displayed while retrieving viewing status of file(s) / folder(s):
- status
Status of the file(s) / folder(s) like exist or do not exist.
-
fname
Name of the file path.
You can make use of I / O redirection methods for redirecting IDrive EVS command line utility (idevsutil) output.