public:backing_up_dokuwiki
Differences
This shows you the differences between two versions of the page.
| public:backing_up_dokuwiki [2016/07/26 14:49] – created fangfufu | public:backing_up_dokuwiki [2018/03/31 00:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Backing up DokuWiki ====== | ||
| + | This is how I backup my DokuWiki: | ||
| + | * backup-dokuwiki.sh | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | name=$GOOGLE_DRIVE_DIRECTORY/ | ||
| + | sudo tar cJf ${name} / | ||
| + | drive push -no-prompt ${name} | ||
| + | rm -rf ${name} | ||
| + | </ | ||
| + | |||
| + | Add the following into crontab: | ||
| + | < | ||
| + | 0 | ||
| + | </ | ||
| + | |||
| + | I get the the following email everyday: | ||
| + | < | ||
| + | Return-path: | ||
| + | Envelope-to: | ||
| + | Delivery-date: | ||
| + | Received: from A_CERTAIN_USER by gabriel.fangfufu.co.uk with local (Exim 4.87) | ||
| + | (envelope-from < | ||
| + | id 1bRWID-0005xV-Ca | ||
| + | for A_CERTAIN_USER@fangfufu.co.uk; | ||
| + | From: root@fangfufu.co.uk (Cron Daemon) | ||
| + | To: A_CERTAIN_USER@fangfufu.co.uk | ||
| + | Subject: Cron < | ||
| + | MIME-Version: | ||
| + | Content-Type: | ||
| + | Content-Transfer-Encoding: | ||
| + | X-Cron-Env: < | ||
| + | X-Cron-Env: < | ||
| + | X-Cron-Env: < | ||
| + | X-Cron-Env: < | ||
| + | Message-Id: < | ||
| + | Date: Mon, 25 Jul 2016 04:10:57 +0100 | ||
| + | |||
| + | tar: Removing leading `/' from member names | ||
| + | Resolving... | ||
| + | </ | ||
