Hello,
Is there a way to perform automatic backups of Theme Builder themes and layouts? I know there is a layout backup utility on the builder administration page, but this would require us to do the backups manually. We have daily automated backups of Confluence, but restoring from those would overwrite anything else that we might have done. The solution we would like would either involve an automated backup of themes + layouts, or guidance about how we could access the data so we could configure backups outside of Confluence. We do not have access to Confluence databases, so a solution that involved programmatic access would be preferable.
Thanks for your help.
.png)








Comments (11)
Sep 24, 2009
Alain Moran says:
wget http://mysite.com/plugins/builder/dodownloadbackup.action Will resul...wget http://mysite.com/plugins/builder/dodownloadbackup.actionWill result in an date/time stamped xml file containing a backup of all layouts being deposited in the same folder as the wget command was run.
Sep 24, 2009
Satej Sirur says:
Thanks for the quick response. I tried this command for our site and it returns ...Thanks for the quick response. I tried this command for our site and it returns an empty map. We have several layouts in our system, so it should have returned something. Should I have configured something for this to work?
Unrelated, is there a way for me to discover all the available actions (such as the dodownloadbackup action) in our system?
Sep 24, 2009
Alain Moran says:
Ah you wont be logged in ... try appending os_username & os_password, eg: ...Ah you wont be logged in ... try appending os_username & os_password, eg:
wget http://mysite.com/plugins/builder/dodownloadbackup.action?os_username=MYUSERNAME&os_password=MYPASSWORDThere isnt any simple way that I know of for determining the list of available actions ... there may be an xwork utility for this somewhere though .. coding a plugin to do this may also be possible.
If you want to look at all the actions that an individual plugin defines, then rename the .jar file to .zip, uncompress it and open the atlassian-plugin.xml using a text editor.
Sep 24, 2009
Satej Sirur says:
I had that problem the first time around, but I got "<map />" as the respo...I had that problem the first time around, but I got "<map />" as the response after I appended the user name and password.
Sep 24, 2009
Alain Moran says:
try: wget http://mysite.com/plugins/builder/dodownloadbackup.action?os_usern...try:
wget http://mysite.com/plugins/builder/dodownloadbackup.action?os_username=MYUSERNAME&os_password=MYPASSWORD&layoutId=@all@Sep 24, 2009
Satej Sirur says:
Perfect! That worked very well. Thanks, Alain.Perfect! That worked very well. Thanks, Alain.
Sep 24, 2009
Alain Moran says:
PS: from builder 3.4.0, although the dodownloadbackup should still work, you wil...PS: from builder 3.4.0, although the dodownloadbackup should still work, you will be better off moving to dodownloadzippedbackup
Sep 24, 2009
Satej Sirur says:
Nice! This will be very useful.Nice! This will be very useful.
Sep 24, 2009
Alain Moran says:
Even more useful than you can imagine ... it's not just the layout data that's i...Even more useful than you can imagine ... it's not just the layout data that's included in backups anymore ... you can now associate image, css & JS data with a layout & reference it using relative paths.
Not only does it make installing a layout MUCH simpler, but actually developing it too
Sep 24, 2009
Satej Sirur says:
That was the next problem that I was going to tackle. Cannot wait for the new ve...That was the next problem that I was going to tackle. Cannot wait for the new version!
Nov 09, 2009
Alain Moran says:
It's been released here however I wouldnt recommend it for production usage as w...It's been released here however I wouldnt recommend it for production usage as we have changed quite a bit and it's still very raw.