Installation

1. Install AzureBackup.msi.

2. Edit AzureBackup.exe.config as detailed in the configuration section below.

Configuration

Inside the <appSettings> section, use the following settings for your Windows Azure Storage account:

  <add key="AccountName" value="YOUR ACCOUNT NAME"/>
  <add key="AccountSharedKey" value="YOUR SHARED KEY"/>
  <add key="BlobStorageEndpoint" value="https://blob.core.windows.net/" />

Inside the <applicationSettings> section, there is a <AzureBackup.Properties.Settings> section, and inside that you modify the following settings:

  • DownloadSpeed: Your network connection download bandwidth in Mbit/s. This is for calculating a reasonable timeout. Default: 2.
  • UploadSpeed: Your network connection upload bandwidth in Mbit/s. This is for calculating a reasonable timeout. Default: 0.5.
  • SendEmailNotification: Send e-mail notification when a backup completes (True) or not (False). Default: False.
  • SendEmailNotificationAddress: If SendEmailNotification is True, this setting is the e-mail address to send notificaiton to.
  • EnableSSL: If SendEmailNotification is True, specifies whether the SmtpClient uses Secure Sockets Layer (SSL) to encrypt the connection.

Example:

  <applicationSettings>
    <AzureBackup.Properties.Settings>
      <setting name="DownloadSpeed" serializeAs="String">
        <value>2</value>
      </setting>
      <setting name="UploadSpeed" serializeAs="String">
        <value>0.5</value>
      </setting>
      <setting name="SendEmailNotification" serializeAs="String">
        <value>True</value>
      </setting>
      <setting name="SendEmailNotificationAddress" serializeAs="String">
        <value>yourname@yourdomain.com</value>
</setting> <setting name="EnableSSL" serializeAs="String"> <value>True</value> </setting> </AzureBackup.Properties.Settings> </applicationSettings>

If SendEmailNotification is True, you must also specify SMTP (e-mail server) settings in the system.net/mailSettings/smtp element. Here is an example for Hotmail/Windows Live Mail/Outlook.com:

  <system.net>
    <mailSettings>
      <smtp deliveryMethod="Network">
        <network host="smtp.live.com" port="587" defaultCredentials="false" userName=yourname@hotmail.com password="changeme"/>
      </smtp>
    </mailSettings>
  </system.net>

Usage

Azure Backup is a console program that takes 2-3 parameters. General usage is:

AzureBackup.exe <command> <backup name> <command specific arguments>

Valid commands are backup, list, clear and restore.

Backup

Backups the source folder and all sub-folders. If a source file already exists in the backup, a check is made which file’s modified time is more recent. If the source file is more recent than the already backed up file, the backup is updated. Files deleted in the source tree are not deleted in the backup.

Usage: AzureBackup.exe backup <backup name> <source path>

e.g.

AzureBackup.exe backup Pictures C:\Users\Public\Pictures

List

Lists all files in the backup.

Usage: AzureBackup.exe list <backup name>

e.g.

AzureBackup.exe list Pictures

Restore

Restores all files in the backup to the specified path.

Usage: AzureBackup.exe restore <backup name> <destination path>

e.g.

AzureBackup.exe restore Pictures C:\Temp\Pictures

Clear

Deletes the entire backup. A confirmation is needed before continuing.

Usage: AzureBackup.exe clear <backup name>

e.g.

AzureBackup.exe clear Pictures

Clean

Deletes all backup files not present locally in the source path.

Usage: AzureBackup.exe clean <backup name> <source path>

e.g.

AzureBackup.exe clean Pictures C:\Users\Public\Pictures

Automatic Backups

The easiest way to set up automatic backups is to add a scheduled task in Windows. For example, to back up your Windows Home Server, you could create a small command file similar to this and schedule it to run once a week:

AzureBackup.exe backup Photos \\HPSERVER\Photos
AzureBackup.exe backup PublicDocs \\HPSERVER\Public
AzureBackup.exe backup Users \\HPSERVER\Users

Last edited Jan 3, 2013 at 9:16 PM by henriko, version 3

Comments

No comments yet.