Hi,
I tried restored production stash (3.1.3) to my stage stash (3.1.3) with stash-backup-client.jar and stash-restore-client.jar from stash-backup-client-1.9.1. It went OK except that all repos only show main branch. Can someone help? Thanks!
Commands I used to restore
java -Djdbc.override=true -Djdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver -Djdbc.url="jdbc:sqlserver://...;databaseName=..." -Djdbc.user=... -Djdbc.password=... -Dstash.home=... -jar .../stash-backup-client-1.9.1/stash-restore-client.jar ./stash-20171019-041823-113.tar
Community moderators have prevented the ability to post new answers.
Hey Qiang,
This is fairly an odd one. Usually repositories should be intact as long as everything is backed up correctly and that the file is not corrupted. A few things that you can check:
Best,
Andrew Er
Andrew,
Thanks for your answer.
. Yes, I used 1.9.1 for both backup and restore. I also made sure backup/restore both ran with jdk1.7.0_141.
. I did backup/restore again. I did not see any errors. It took pretty long time, about 4 hours to restore to my testing instance.
. git command can list various branches, not just master.
. I did not try the new version backup/restore tools. What versions work with both Stash 3.1.3 and Bitbucket? My production was running with Stash 3.1.3. And I cannot upgrade production before I can restore data to my testing server yet.
Thanks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.