Retention for deleted files

Last post 08-24-2019, 2:05 AM by Anthony.Hodges. 3 replies.
Sort Posts: Previous Next
  • Retention for deleted files
    Posted: 08-22-2019, 5:07 PM

    We have an endoint Commserve that appears to be defaulting to 2-years for files being deleted.  Is there a way to globally change this without having to modify each individual subclient?  We have a legal hold in place so I need to set a bunch of endpoints to have a retention of indefinite.  There are enough endpoints involved that it probably makes sense to just change it across the board for the time being.



    - Bill

  • Re: Retention for deleted files
    Posted: 08-23-2019, 12:39 AM

    Hi, unfortunately this setting does not appear in Subclient Policies.  If you have a list of the clients that you want to modify then you can create a batch script to modify this default 2 year deleted item retention.

    Run the command below on the CommServe in the same location as the extracted zip to get the xml file above.  

    qoperation.exe -af change_endpoint_retention.xml -clientName CLIENTNAME_1_of_Many -fsSubClientProp/backupRetentionMode AFTER_DELETION_KEEP_ITEMS_INDEFINITELY -fsSubClientProp/afterDeletionKeepItemsForNDays -1

    You'll need to qlogin.exe beforehand and qlogout.exe when you have finished.


  • Re: Retention for deleted files
    Posted: 08-23-2019, 7:48 AM

    Thank you.  Is it possible to run this command against an entire computer group of clients? (make the change for all clients in a specific computer group)  Or read from a file that contains a list of clients?  I would also need the command the change this back from indefinitely to 2 years.


    - Bill

  • Re: Retention for deleted files
    Posted: 08-24-2019, 2:05 AM

    That command works on a per client basis.  It would be possible to do it via PowerShell.  You could redirect the results of "qlist client -cg clientgroup" ( into a text file, then use powershell to loop through the clients one-by-one by feeding the each iteration of a clientname into the qoperation command provided earlier.

    Or, you may find that just importing the qlist client command file as data into Excel would be a much faster way.  That way you could use Excel =concatenate("qoperation.exe -af change_endpoint_retention.xml -clientName ", A1...AN, " -fsSubClientProp/backupRetentionMode AFTER_DELETION_KEEP_ITEMS_INDEFINITELY -fsSubClientProp/afterDeletionKeepItemsForNDays -1") function (A1...AN is a single Excel Cell for a clientname) to repeat the command for each client.  Then just just highlight all the cells that have the qoperation commands into the Command Prompt - then wait a few minutes for it process them all.

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.
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy