Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: copyedit

It is possible to use the DrTool to create a drtool DrTool file from a destination uriURI.This  This can take some time for very large destinations, but it is done via the query argargument.

For exampleExample:

Optionally

this could be run as This can be automated as follows:

  1. Have a scheduled task

...

  1. create a

...

  1. DrTool file in a batch operation

...

  1. .
  2. Have that file immediately posted to

...

  1. Swarm storage for long-term retention.

Here's an example powershell PowerShell script which would create a drtool DrTool file from destination and then post it to a cloudscaler CloudScaler bucket. Once posted it , the script removes the generated file. 

Code Block
#################Begin Script####################################

...



$drtoolfile = 'C:\Program Files\Caringo FileFly\AdminTools\DrTool\Drtool.bat'

...


$a = (Get-Date -Format yyy-mm-dd-hhmm)

...


$filename = "c:\" + $a + ".txt"

...


$domain = "cloudscaler://filefly.ecorp.com/testdomain1.ecorp.com/fileflydata/"

...


$arguments = "-query $domain $filename"

...



#######################

...


$username = "<yourusername that has permission to write to the storage goes here>"

...


$password = "<password for the same user>" | ConvertTo-SecureString -AsPlainText -Force

...


$cred = New-Object System.Management.Automation.PSCredential($username,$password)

...



Start-Process -Wait -NoNewWindow $drtoolfile $arguments

...

 
Invoke-WebRequest -Uri http://testdomain1.ecorp.com/drtoolruns/$filename -Method Post -InFile $filename -Credential $cred | Out-File C:\log.txt -Append

...




Remove-Item $filename

...



##################################################################

Then we can use windows scheduled tasks a Windows Scheduled Task to automate the run. 

Image RemovedImage Added

Image RemovedImage Added

Image Removed

Full Image Added

This is the full line for Arguments above is the arguments above:

Code Block
"-ExecutionPolicy Bypass C:\Users\Administrator.ECORP\Documents\createdrtoolfilefromdest.ps1"

Here i have my task running daily as my Destination is quite small.

In most production environments the Drtool

Info
titleImportant

Because this Destination is small, it is manageable to run it as a daily task. However, in most production environments, the DrTool creation can take 3-4 days, so once

...

every one or

...

two weeks would

...

be

...

optimal.