{"id":762,"date":"2023-12-24T01:01:48","date_gmt":"2023-12-24T09:01:48","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=762"},"modified":"2023-12-24T01:18:50","modified_gmt":"2023-12-24T09:18:50","slug":"archived-post-by-mattiasmalmer-13","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2023\/12\/24\/archived-post-by-mattiasmalmer-13\/","title":{"rendered":"Archived post by mattiasmalmer"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">here goes&#8230;<\/p>\n<p class=\"\">it creates a subdirectory named backup. saves a copy of your scene there named currentscenename_backup_timestamp.hip<\/p>\n<p class=\"\">then it does that every ten minutes.<\/p>\n<p class=\"\">and after it has written ten files it deletes the first one. so you have rolling loop of ten backup files. (to ensure your server is not full of files over night haha)<\/p>\n<p class=\"\">you can change update interval and number of stored backups really easily by just modifying the py file.<\/p>\n<p class=\"\">this in my opinion is how auto backup SHOULD work.<\/p>\n<p class=\"\">now it would be neat if it did not save files if the scene is unmodified. so that it does not make a lot of unneccessary saves. but I can live with that for now.<\/p>\n<p class=\"\">now this code is written by an idiot and chatGPT so do not blame me if it paperclips your machine<\/p>\n<p class=\"\">no more stupid overwriting of the original scene file. no broken links to caches from changes in filenames. just a straight backup if shit hits the fan.<\/p>\n<p>Attachments in this post: <br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20230112\/24\/23\/456.py\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20230112\/24\/23\/456.py<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>here goes&#8230; it creates a subdirectory named backup. saves a copy of your scene there named currentscenename_backup_timestamp.hip then it does that every ten minutes. and after it has written ten files it deletes the first one. so you have rolling loop of ten backup files. (to ensure your server is not full of files over &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2023\/12\/24\/archived-post-by-mattiasmalmer-13\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by mattiasmalmer<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/762"}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=762"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/762\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}