Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Backup SourceTree

cyberpunkstudio May 15, 2013

I am looking to format my Mac and reinstall everything including the new Mountain Lion. I currently have SourceTree on version 1.6.0.1. I have over a hundred repos setup. Rather than cloning all my repos and losing all my preferences and logins etc. Is there a way to backup my entire SourceTree including all my repos, settings, logins etc. So when I have reinstalled my OS I can just setup SourceTree as it was?

2 answers

1 accepted

3 votes
Answer accepted
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2013

Hi Steven,

You'll want to backup ~/Library/Application Support/SourceTree/browser.plist and ~/Library/Application Support/SourceTree/hostingservices.plist firstly. This will restore the bookmarks and the hosting services in your hosting list in SourceTree.

Secondly, you'll want to backup all your repositories and restore them to the exact same location afterwards. Even the username of the user needs to be the same as we use absolute paths. For example if it was /Users/Steven/Documents/Repositories/ and there was a load of repositories in there, then that's where they'll need to go afterwards.

If you use SSH keys then you'd need to the contents of ~/.ssh/ also.

For things in the Keychain, you can export/import keys but not passwords. Just hit Cmd+Space and type "Keychain Access" and take a look at what you might need. For HTTPS you may need to re-enter and remember passwords for them to be put back in the keychain when you restore everything.

Hope that helps

fnkr May 20, 2013

And on Windows?

stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 21, 2013

On Windows the data you want is in %USERPROFILE%\AppData\Local\Atlassian\SourceTree

0 votes
Chris Cinelli June 1, 2014

What is the answer for version 1.6.4.1 and also for 1.9? I have some files in the ~/Library/Application Support/SourceTree but it looks like they haven't be updated for a while.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events