public void StartBlobToEndpointBackup(string authKey, string sourceConStr, string destConStr, string containerName, string filename)
        {
            if (this.ValidateAuthKey(authKey))
            {
                var source = new FileDataSource(BackupDirection.Source, sourceConStr, containerName, filename);
                var dest   = new TableStorageDataSource(BackupDirection.Destination, destConStr);

                this.backup.StartAsync(source, dest);
            }
        }
        public void StartEndpointToBlobBackup(string authKey, string sourceConStr, string destConStr, string containerName, string filename)
        {
            if (this.ValidateAuthKey(authKey))
            {
                var source = new TableStorageDataSource(BackupDirection.Source, sourceConStr);
                var dest = new FileDataSource(BackupDirection.Destination, destConStr, containerName, filename);

                this.backup.StartAsync(source, dest);
            }
        }
        private void FileToDevEndpointBackup(string filename, string sourceConStr, int operationNo, int operationCount)
        {
            OnOperationChange(operationNo, operationCount, "Restoring to Development Storage");

            // Upload file to blob
            string tempFilename = this.GetTempFilename();
            UploadBlob(sourceConStr, tempContainerName, tempFilename, filename, false, false);

            // Perform local backup
            var source = new FileDataSource(BackupDirection.Source, sourceConStr, tempContainerName, tempFilename);
            var dest = new TableStorageDataSource(BackupDirection.Destination, sourceConStr);

            this.backup.Start(source, dest, OnProgress);
        }
        private void DevEndpointToFileBackup(string sourceConStr, string filename, int operationCount)
        {
            OnOperationChange(1, operationCount, "Backing up development storage");

            // Perform local backup
            string tempFilename = Path.GetFileNameWithoutExtension(filename) + ".tsbak";
            var source = new TableStorageDataSource(BackupDirection.Source, sourceConStr);
            var dest = new FileDataSource(BackupDirection.Destination, sourceConStr, tempContainerName, tempFilename);
            this.backup.Start(source, dest, OnProgress);

            // Download the blob to file
            DownloadBlob(sourceConStr, tempContainerName, tempFilename, filename, true, false);
        }