Automate Restore for all clients on monthly basis

Last post 09-10-2019, 3:33 AM by Anthony.Hodges. 3 replies.
Sort Posts: Previous Next
  • Automate Restore for all clients on monthly basis
    Posted: 09-09-2019, 11:29 AM

    I need to schedule restores for all the clients on monthly basis using API.

    We need to restore data from 20 days older set.

    Can you please help with steps if this is possible.

  • Re: Automate Restore for all clients on monthly basis
    Posted: 09-09-2019, 7:02 PM

    What is you are trying to restore? VMware, SQL Server, Windows File System?  Does it need to be through API when Commvault's internal scheduler can do this?

  • Re: Automate Restore for all clients on monthly basis
    Posted: 09-10-2019, 1:58 AM

    Thanks Anthony for your inputs.

    The reason we want to skip internal scheduler is , we have ~600 clients (FS & VADP).
    If we follow the traditional way , we will have to manually schedule it for all once.

    We wanted to know if we can use the API , provide restore from dates and use a list with all client name and then program it in such a way that we have recurring test restores every month.

  • Re: Automate Restore for all clients on monthly basis
    Posted: 09-10-2019, 3:33 AM

    Workflow looks like your best bet.  That way you use CV's scheduler to run it monthly.

    The VADP and FS examples I linked in my earlier post indicate how you could restore using the command line, however you can replicate those by using the workflow objects in the Workflow.  Create a Workflow String variable as a list (one for the files systems, the other for vadp), then use the ForEach control flow object to loop through.  To do the date calculation you could sandwhich it into a couple Java lines as follows...

    import java.text.SimpleDateFormat;

    workflow.setVariable("date", (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(new Date((new Date()).getTime() - (20 * 86400000))));

The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2019 Commvault | All Rights Reserved. | Legal | Privacy Policy