{"id":741,"date":"2017-12-14T09:40:42","date_gmt":"2017-12-14T09:40:42","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=741"},"modified":"2017-12-14T09:41:21","modified_gmt":"2017-12-14T09:41:21","slug":"backup-check","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/backup-check\/","title":{"rendered":"Backup check"},"content":{"rendered":"<p class=\"description_pui\">This module is applied to know if a backup is done. In the backup script you need to create always a fixed link name which point to the latest backup file.<\/p>\n<p>This module get&#8217;s the time of a link which points to the lastest backup in the system. When backup its too old (&gt;90,000 is about to be more than 1,1 days), should put itself in CRITICAL, it depends on the user to set the ammount of time from last backup (in seconds) to consider it CRITICAL.<\/p>\n<p>Tested only in Linux.<\/p>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name LastBackup_Timestamp\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec expr `date +%s` - `ls -la --time-style=+%s \/var\/backup\/lastbackup| awk '{ print $6 }'`\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This module is applied to know if a backup is done. In the backup script you need to create always a fixed link name which point to the latest backup file. This module get&#8217;s the time of a link which points to the lastest backup in the system. When backup its too old (&gt;90,000 is [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[41,8],"tags":[145],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/741"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=741"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/741\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}