Hi,
I accidentally deleted a user macro - instead of clicking on Edit, I clicked on Delete :(
Is there a way to recover the deleted user macro? I have daily backups of the whole installation of Confluence.
Thank you!
Ok, I finally found the solution so here it is.
This requires that you have a backup of the confluence database from before deleting the macro. In my case, the database is in postgreSQL so I will use that as an example.
Now you have multiple options. You could either look for the lost macro in the file, select the whole of it (everything between <entry> and </entry> inclusive the two tags) and copy it to your active confluence database (you can connect to it just like you did for the local one) or you could copy the whole content and replace it (if you did not change anything else, for example).
After that save the database and restart confluence. The macro will now be there again!
I guess I don't understand why it wouldn't gracefully prompt you for confirmation like nearly every other Confluence 'delete' action?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created a free app for user macros that fixes a bunch of missing pieces with user macros. One feature is that is gives you a delete confirmation. Also, if allows you to keep history of user macro edits so that even if you do accidentally delete it you can get it back with the history if you have that feature turned on.
https://marketplace.atlassian.com/apps/1218853/enhanced-user-macro-editor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.