pleqa.blogg.se

Syncback_setup
Syncback_setup




syncback_setup syncback_setup

Then run it from the command prompt in PowerShell to make sure it works as expected and that the CloudBerry Explorer PowerShell Snap-In is properly installed. It’s pretty straightforward, change the values in the first section to your Amazon keys, your backup bucket name and path as well as your local folder to sync to Amazon S3.

syncback_setup

See the screenshot below for how to check the current policy and changing it.Īll available commands and parameters as well as a few examples for the CloudBerry Explorer PowerShell Snap-In can be found here ».Ĭopy the script below to a local file and name it something like SyncFolderWithAmazonS3.ps1 # Setup $key = "" $secret = "" $s3bucket = "/" $localsource = "" # Add the CloudBerry SnapIn to the Console Add-PSSnapin # Connect to the Amazon S3 Account and select the path $s3 = Get-CloudS3Connection - Key $key - Secret $secret $target = $s3 | Select-CloudFolder - Path $s3bucket #Connect to local file system and select local folder $local = Get-CloudFileSystemConnection $source = $local | Select-CloudFolder $localsource # Perform the Syncing $source | Copy-CloudSyncFolders $target - DeleteOnTarget - IncludeSubFolders Perfect, just what I wanted.Ĭhange the execution policy in PowerShell with this command: Set-ExecutionPolicy RemoteSigned By default PowerShell’s script execution policy is set to restricted, so I started by changing this policy to RemoteSigned, which means that scripts needs to be signed to be executed except those I write myself.

syncback_setup

This was more or less the first time I used the new PowerShell in Windows, and I quickly noticed that it didn’t execute my script files. I’m very happy I found CloudBerry Explorer, as it seems to support all new features introduced by Amazon S3 as soon as they are available, and I’ll probably start using it for all my S3 managing needs and not only to sync my backups.Īnyway, let’s get started with how to set this up. Not to worry though, after some research I found a solution for SyncBack by using Windows’ built-in PowerShell together with the awesome CloudBerry Explorer which comes with a PowerShell Snap-In. Unfortunately at this time, SyncBack does not support using a service like Amazon S3 for backup. Time changes though and I’ve recently embraced the concept of using online storage for my backup needs, and went with Amazon S3. I’ve been using SyncBack to handle my backup needs to external drives and FTP for a couple of years and it has worked a charm.






Syncback_setup