Related links
Developer Resources
Events
Get details of events like Upload, Download, Rename, Delete etc., in your IDrive account within a specified time period using this API.
1. List all events for the specified Month and Year:
Syntax:
idevsutil --xml-output --password-file=<account password> --event-month=<month> --event-year=<year> <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>
- --event-month=MONTH
Specify the month for which you would like to view the events. Default is the current month.
- --event-year=YEAR
Specify the year for which you would like to view the events. Default is the current year.
Code:
idevsutil --xml-output --password-file="MyPassword" --event-month=08 --event-year=2011 john@<server address>::ibackup/
Output:
Sample XML output:
<item op="Upload" date="2011/08/24" eventid="BCK20110824">
<item op="Download" date="2011/08/24" eventid="RES20110824">
2. View / Download particulars of an event:
Syntax:
idevsutil --xml-output --password-file=<account password> --event-month=<month> --event-year=<year> --eventid=<event id> --save-event=<location where you wish to download the event details> <username>@<server address>::ibackup/
- --event-month=MONTH
Specify the month for which you would like to view the events. Default is the current month.
- --event-year=YEAR
Specify the year for which you would like to view the events. Default is the current year.
- --save-event=PATH
Specify the location where you wish to download the event details.
Code:
idevsutil --xml-output --password-file="MyPassword" --event-month=08 --event-year=2011 --eventid="BCK20110824" --save-event=/data/events <username>@<server address>::ibackup/
Output:
Sample XML output:
<item op="download" eventid="BCK20110824"/>
You can make use of I / O redirection methods for redirecting IDrive EVS command line utility (idevsutil) output.