{"id":1027,"date":"2015-07-22T22:02:38","date_gmt":"2015-07-22T22:02:38","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1027"},"modified":"2015-07-22T22:02:38","modified_gmt":"2015-07-22T22:02:38","slug":"how-to-backup-and-restore-unifi-data-from-the-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-backup-and-restore-unifi-data-from-the-command-line\/","title":{"rendered":"How to Backup and Restore UniFi data from the Command Line"},"content":{"rendered":"<p><strong>Backup<\/strong><\/p>\n<p>backup the UniFi directory<\/p>\n<pre>tar zcvf unifi-backup.tgz \/usr\/UniFi\/<\/pre>\n<p>Move the tar archive off site.<\/p>\n<p><strong>Restore<\/strong><\/p>\n<p>Upload the backup file to the server.<\/p>\n<p>Note: You will need to have the UniFi controller install already.<\/p>\n<p>Copy the archive to the root directory and then extract it.<\/p>\n<pre>mv unifi-backup.tgz \/\r\ncd \/\r\ntar zxvf unifi-backup.tgz<\/pre>\n<p>Reboot the server and login to the UniFi controller.<\/p>\n<pre>reboot<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Backup backup the UniFi directory tar zcvf unifi-backup.tgz \/usr\/UniFi\/ Move the tar archive off site. Restore Upload the backup file to the server. Note: You will need to have the UniFi controller install already. Copy the archive to the root &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-backup-and-restore-unifi-data-from-the-command-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,129],"tags":[8,7,166,131,132],"class_list":["post-1027","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubiquiti","tag-command-line-2","tag-linux-2","tag-terminal","tag-ubiquiti-2","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1027"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1027\/revisions"}],"predecessor-version":[{"id":1032,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1027\/revisions\/1032"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}