Created
May 7, 2014 11:14
-
-
Save jhauge/683555734fb1d16183bd to your computer and use it in GitHub Desktop.
Backup umbraco.io db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup your umbraco.io db to local machine with this powershell script | |
# based on a connection string looking like this | |
# server=xxxxxx.database.windows.net,1433;database=xxxxxx;user id=xxxxxx;password=xxxxxx | |
# | |
$dbserver = 'xxxxxx.database.windows.net,1433' | |
$dbname = 'xxxxxx' | |
$username = 'xxxxxx' | |
$password = 'xxxxxx!' | |
$timestamp = Get-Date -Format 'yyyyMMddTHHmmss' | |
& sqlpackage /a:export /ssn:"$dbserver" /sdn:"$dbname" /su:"$username" /sp:"$password" /tf:"xxxprojectnamexxx-$timestamp.bacpac" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment