Skip to content

Instantly share code, notes, and snippets.

@moinsam
Created June 16, 2017 11:29
Show Gist options
  • Save moinsam/5009c0b1bf7f7f663ace5fa879fcd2ee to your computer and use it in GitHub Desktop.
Save moinsam/5009c0b1bf7f7f663ace5fa879fcd2ee to your computer and use it in GitHub Desktop.
this sript could be used to migrate svn repo from windows to aws s3 bucket
set path="C:\Program Files\VisualSVN Server\bin"
set REPO=c:\Repositories
for /d %%a in (%REPO%\*) do (
svnadmin hotcopy %%~a c:\svn-backup\temp\%%~nxa
"C:\Program Files\SprightlySoft\S3 Sync\S3Sync.exe" -AWSAccessKeyId AWS_ACCESS_KEY_ID -AWSSecretAccessKey AWS_SECRET_KEY -LicenseKey LICENSE_KEY -SyncDirection upload -LocalFolderPath "c:\svn-backup\temp" -bucketName BUCKET_NAME -S3FolderKeyName "Repositories/"
)
rem rd c:\svn-backup\temp\%repoName% /q /s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment