Non-official script! Provided on 'as-is' basis.
This is a new version of the popular reposync script. (http://communities.quest.com/thread/10839?tstart=0)
Thanks to collaboration with R&D the script works with all repo types. Based on support experience, few extra features have been included.
Features:
- Supports all repo types.
- Depending on immediate goal, synchronizes either whole repo or set of directories.
- Thoroughly validates each SP. Practically what Ranger does while importing.
- Imports both VM and physical server SPs.
- Displays SP being processed at the moment, number of found SPs and processing time for each SP.
- Revives retention if an original template (and corresponding job/task) that created imported SPs still exists.
- Expires old SPs with given threshold date. Integrity of Incr/Diff set is preserved.
- Creates/updates a GlobalManifest (for RW shares) and saves a copy into dump directory.
- Keeps extensive log for deeper analysis.
Instructions:
- Download archive.
- Place it on any Windows machine with PowerShell ver. 2 or greater. Script is autonomous, BET are prepackaged. Thus there is no need to execute it from Ranger itself.
- Extract files from archive.
- Launch PowerShell console as administrator.
- Allow script execution if necessary:
Set-ExecutionPolicy unrestricted - Change directory to the script location, e.g. c:\BETreposync
- Execute script
.\reposync03
Note for users with DDBoost repositories.
DDBoost repos proved to be the slowest to import/sync. It does not mean though that this repo type shows bad performance during backup/restore.
The script reads 2 metadata files for each SP. Correspondingly BET metadata.exe is executed.
Just for comparison, single metadata call against CIFS repo takes less than a second. The best result for a single metadata call against DDBoost repo was 4.3 s.
Also there is an open bug for the case where metadata read takes 6 minutes. Devs are looking into the issue, there are few components to check: BET - cygwin - DDBoost API - Datadomain firmware.
Tested against vRanger 5.4/5.5 and 6.0.2. Script won't work for Ranger 5.3 or earlier version.
01/17/2014 Update. Minor bug for SP manifest reading has been fixed.
In contrast to reposync02 (still very popular), BET-based handles long SP path properly.