Restoring SharePoint Data from the Command Line Interface

To run the restores from the command line interface, you need an input XML file that contains the element values to configure the restore options. This input XML file can be obtained using one of the following ways:

  • Download the input XML file template and save it on the computer from where the restore will be performed.

  • Generate the input XML file from the CommCell Console and save it on the computer from where the restore will be performed.

Procedure

  1. Download the restore_template.xml file and save it on the computer from where the command will be run.

  2. From command prompt, go to <Software_Installation_Directory>/Base and run the following command:

    qlogin -cs commserve name -u user name
  3. Run the saved xml script using qoperation execute command.

    qoperation execute -af restore.xml -appName 'Sharepoint Server' -clientName xxxxx -backupsetName xxxxx -destPath xxxxx -sourceItem xxxxx
  4. Verify the status of the job using the following command:

    qlist job –j JOBID
  5. After the job completes, run the qlogout command to log off the CommServe computer.

Examples

Restoring from a current backup

qoperation execute -af restore.xml -appName 'Sharepoint Server' -clientName client1 -backupsetName backupset1 -destPath '/etc4' -sourceItem '/etc'

Restoring files to a point in time (date)

qoperation execute -af restore.xml -appName 'Sharepoint Server' -clientName client1 -backupsetName backupset1 -destPath '/etc4' -sourceItem '/etc' -toTimeValue 2011-11-28

Restoring files to a point in time (date and time)

qoperation execute -af restore.xml -appName 'Sharepoint Server' -clientName client1 -backupsetName backupset1 -destPath '/etc4' -sourceItem '/etc' -toTimeValue '2011-11-28 15:40:00'

Page contents

×

Loading...