To upload to Azure VMs folders along with their content, you can create folders upload jobs.
Jobs allow you to automate folders upload. Each job describes advanced upload settings, such as the list of folders that must be uploaded, destination folder, schedule according to which upload must be performed and, optionally, PowerShell commands to be performed before the job starts and/or after the job finishes.
To create a folders upload job:
1.Open the Virtual Machines view.
2.In the Machines list on the left, choose an Azure VM to which you want to upload folders.
3.Do one of the following to open the Folders Upload Job wizard:
▪Click Upload Folders on the ribbon.
▪Right-click the VM and choose Create Upload Folders Job.
4.At the Job name and description step of the wizard, specify a name and description of the job.
5.At the Choose source objects step of the wizard, select folders that the job must upload.
6.At the Choose destination folder step of the wizard, expand the folder tree of the target VM and select a folder to which chosen folders must be uploaded.
7.At the Set job schedule step of the wizard, you can choose to run the job manually or schedule the job to run on a regular basis.
To run the job on a schedule, select the Run the job automatically check box and define scheduling settings for the job:
▪Daily at this time — select this option to run the job at a specific time on a defined week day.
▪Monthly at this time — select this option to run the job once a month on a defined week day.
▪Periodically every minute/hour — select this option to run the job repeatedly throughout a day with a defined time interval.
If you plan to run the job manually, leave the Run the job automatically check box cleared.
You cannot concurrently run two or more jobs that reference the same Azure VM as the job source or job target. If you schedule several jobs to run simultaneously against the same Azure VM, Veeam FastSCP for Microsoft Azure will perform only one job at a time; the other jobs will be put in queue.
9.At the PowerShell commands step of the wizard, specify PowerShell commands that must be performed before the job starts and/or after the job finishes.
PowerShell commands specified in this section will be executed on the Azure VM. The following logic is used when executing commands:
▪PowerShell pre-commands are executed before running the job.
If the execution status of the commands is successful, the job will start. If execution of the commands fails, the job will not start, and post-commands (if specified) will not be performed as well. The job session status will be reported as Failed. The command execution errors will be returned in the job session details.
▪PowerShell post-commands are executed after the job finishes.
If the execution of the commands fails, the job session status will be reported as Failed. The command execution errors will be returned in the job session details.
If an Azure VM runs Microsoft Windows 2008 R2, the scripts can only include cmdlets that use common language runtime (CLR) version 2.0 or earlier.
10.Click Finish to save job settings and close the wizard.