Many web developers I know are now using the fantastic code editor software from Panic, Coda.
Whilst preparing for a machine refresh, I realised there must be a simple way of automatically creating a backup of all the Site details stored in Coda without having to recreate them on the other side. It turns out, it’s not too complicated.
All the Coda Sites and preferences are stored in a single place on your Mac (replaceÂ ~/ withÂ /Users/(your username)/ for the full path):~/Library/Preferences/com.panic.Coda.plist
I’ve now created an alias of the file and placed it in my Dropbox so all changes are automatically cloned online.
Leanda also asked how FTP details were saved. A quick Google found that all your Keychain passwords are stored in another local file:~/Library/Keychains/login.keychain
Again, alias the file and drop it in your Dropbox.
The next time you need to recreate all your Coda sites (and recover all those Keychain passwords), simply copy these files back to your machine in the same locations with a few tweaks to recover the passwords:
- Open the KeychainÂ Access applicationÂ in the Applications/Utilities
- SelectÂ Edit > Keychain List
- Click the + button to add another keychain
- Select your original keychain file from your backup and hit OK
Voila, you’re done.
Disclaimer: I take no responsibility if this process does not work for you and all backups are lost. It’s just a suggestion and pointer to the necessary files to help improve your backup solution.