{"id":528,"date":"2017-05-10T14:01:52","date_gmt":"2017-05-10T12:01:52","guid":{"rendered":"http:\/\/www.ume.li\/blog\/?p=528"},"modified":"2017-05-10T14:59:10","modified_gmt":"2017-05-10T12:59:10","slug":"deleted-folders-workaround","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2017\/05\/10\/deleted-folders-workaround\/","title":{"rendered":"IBM Connections &#8211; Deleted Folders workaround"},"content":{"rendered":"<p>Deleted folders don&#8217;t go to the trash in Connections 5 and 5.5. Getting them back from the db backup can take some time. If you just need to know which files have been in a particular folder to recreate it, it&#8217;s a lot of work.<\/p>\n<p>To make it a bit easier I&#8217;ve created this little sql command<br \/>\n<code><br \/>\nconnect to  files@<\/p>\n<p>export to folderInfo.csv of DEL Modified by NOCHARDEL select  folders.title as foldername,media.title as filename, folders.external_container_id as community_uuid, hex(me<br \/>\ndia.id) as fileID ,hex(folders.id) as folderid from files.media as media right outer join (select folder.ID,folder.TITLE,folder.external_container_id,folder.Label, map.media_id from files.collection as folder inner join files.collection_to_media as map on folder.ID=map.collection_id) as folders on media.id=folders.media_id order by folders.title@<br \/>\n<\/code><\/p>\n<p>Now if someone accidentially deleted the folder instead of the file in the folder I just have to search the csv files instead of the doing a complete db restore.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deleted folders don&#8217;t go to the trash in Connections 5 and 5.5. Getting them back from the db backup can<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-528","post","type-post","status-publish","format-standard","hentry","category-connections"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=528"}],"version-history":[{"count":4,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/528\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/528\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}