Skip to content

Instantly share code, notes, and snippets.

@jespernohr
Created November 18, 2016 20:31
Show Gist options
  • Save jespernohr/720e3595d54d6023bac4b6c89793c5b6 to your computer and use it in GitHub Desktop.
Save jespernohr/720e3595d54d6023bac4b6c89793c5b6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2016-10-21T07:41:00.0701441</Date>
<Author>blog\awaii</Author>
<Description>This command copies content from local folder d:\crl to Azure Storage blob account and saves a log file to local drive d:\logs
/XO
Excludes an older source resource. The resource will not be copied if the last modified time of the source is the same or older than destination.
Applicable to: Blobs, Files
/Y
Suppresses all AzCopy confirmation prompts.</Description>
<URI>\pki azcopy</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2016-10-21T01:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-18</UserId>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>"C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe"</Command>
<Arguments>/Source:d:\crl /Dest:https://example.blob.core.windows.net/crl/ /DestKey:*******== /Pattern:*.cr* /XO /Y /V:d:\logs\azcopy.log</Arguments>
</Exec>
</Actions>
</Task>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment