Created
June 16, 2017 11:29
-
-
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
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
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