How you prepare for file recovery depends on where your data is stored:
- A supported third-party storage system — If you use a third-party storage system with StorageZones Controller, your third-party storage is redundant and a local backup is not required. However, be aware that a ShareFile user who deletes a file has the ability to recover the file from the Recycle Bin for a brief period. A file cannot be recovered from the ShareFile Recycle Bin after 45 days. After the recovery period, the file is removed from the zone and therefore from the redundant third-party storage. If that recovery time is not adequate, consider one of these solutions:
- Increase the amount of time that a file remains in the ShareFile recycle bin. To do that, change the value of the Period setting in C:\inetpub\wwwroot\Citrix\StorageCenter\SCFileCleanSvc\FileDeleteService.exe.config. For more information, refer to Customize storage cache operations. Keep in mind that increasing the retention time also increases the amount of third-party storage needed.
- Create a local back up your StorageZone files every seven days and determine the appropriate retention policy for the backups.
- On-premises storage — If you use a locally-maintained share for private data storage, you are responsible for backing up your on-premises StorageZones Controller local file storage and registry entries. ShareFile archives the corresponding file metadata that resides in the ShareFile cloud for 3 years.
To protect against data loss, it is critical that you take a snapshot of your StorageZones Controller server, back up its configuration
, and back up your local file storage.
After you prepare your StorageZones Controller for file recovery as described in this topic, you can use the ShareFile Administrator console to:
- Browse your StorageZones for ShareFile Data records for a particular date and time and then tag any files and folders that you want to restore. ShareFile adds the tagged items to a recovery queue. You then run a recovery script to restore the files from your backup to the persistent storage location.
For more information, refer to Recover files and folders from your ShareFile Data backup.
- Reconcile the metadata stored on the ShareFile cloud with your on-premises storage when you cannot recover data from your on-premises storage. The ShareFile reconcile feature permanently removes from the ShareFile cloud the metadata for files that are no longer in a StorageZone on a specified date and time.
For more information, refer to Reconcile the ShareFile cloud with a StorageZone
- Windows Server 2012 R2 or Windows Server 2008 R2
- Windows PowerShell (32-bit and 64-bit versions) must support .NET 4 runtime assemblies. For more information, refer to "PowerShell scripts and commands" in StorageZones Controller system requirements.
- PsExec.exe - PsExec enables you to launch PowerShell using the network service account. You can also use PsExec to schedule recovery tasks. Download PsExec.exe from http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx and follow the installation instructions on that page.
In this section
In the event a scheduled recovery task is needed, follow the steps below.
- Start Windows Task Scheduler and in the Actions pane click Create Task.
- On the General tab:
a. Type a meaningful name for the task.
b. Under Security options, click Change User or Group, and specify the user to run the task, either Network Service or a named user that has write permissions to the storage location.
c. From the Configure for menu, select the operating system of the server where the task will be run.
- To create a trigger, on the Triggers tab, click New.
- For Begin the task, choose On a schedule and then specify a schedule.
- To create an action, on the Actions tab, click New.
a. For Action, choose Start a program and specify the full path to the program. For example: C:\Windows\System32\cmd.exe.
b. For Add arguments, type: /c "c:\windows\syswow64\WindowsPowerShell\v1.0\PowerShell.exe -File .\DoRecovery.ps1" >> .\recovery.log 2>>.\recoveryerror.log
c. For Start in, specify the Disaster Recovery folder in the StorageZones Controller installation location. For example: c:\inetpub\wwwroot\Citrix\StorageCenter\Tools\Disaster Recovery
Delete Service Default Period
As of StorageZone Controller 4.0, the Delete Service timer will be set to 45 days. The 45 day default period will overwrite any previous settings. To modify the default period, edit FileDeleteService.exe.config at C:\inetpub\wwwroot\Citrix\StorageCenter\SCFileCleanSvc
<!--No. of days to keep data blob in active storage after deletion-->
<add key="Period" value="45"/>
Modify Delete Service Default Period After Upgrade
In some upgrade scenarios, the DeletePeriod value will be set to null in the “FileDeleteService.exe.config”. When set to null, the Delete Period will default to 45 days, the default number of days before a file that has been deleted from ShareFile is removed from physical storage.
To modify the DeletePeriod on the StorageZones Controller, edit the FileDeleteService.exe.config file at the following location: c:\inetpub\wwwroot\Citrix\StorageCenter\SCFileCleanSvc\FileDeleteService.exe.config
Upon a clean installation of the StorageZones Controller, the Delete Service will run every 8 hours to clean up temporary files and folders. To modify the timer, edit the FileDeleteService.exe.config file at the following location: C:\inetpub\wwwroot\Citrix\StorageCenter\SCFileCleanSvc\FileDeleteService.exe.config