This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
vps:vps4th2nd_08 [2019/06/16 20:11] hoge@hoge created |
vps:vps4th2nd_08 [2019/06/30 01:04] hoge@hoge [アップロード] |
||
---|---|---|---|
Line 4: | Line 4: | ||
* jailerにてバックアップスクリプトを作成する。 | * jailerにてバックアップスクリプトを作成する。 | ||
* バックアップスクリプトを /etc/periodic/dailyに配置する。 | * バックアップスクリプトを /etc/periodic/dailyに配置する。 | ||
+ | * /etc/periodic.conf にバックアップスクリプトを追記する。<code> | ||
+ | #!/bin/sh | ||
+ | |||
+ | # 900.vpsbkup | ||
+ | daily_vpsbkup_enable="YES" | ||
+ | # | ||
+ | </code> | ||
==== アップロード ==== | ==== アップロード ==== | ||
Line 10: | Line 17: | ||
* 初回起動<code> | * 初回起動<code> | ||
#cd <Google ドライブと同期したいディレクトリの一つ上> | #cd <Google ドライブと同期したいディレクトリの一つ上> | ||
- | #grive -a -s <Google ドライブと同期したいディレクトリ> | tee <出力先ファイル> | + | #grive -a -s <Google ドライブと同期したいディレクトリ> -u | tee <出力先ファイル> |
</code> | </code> | ||
* 出力先ファイルに記載された URLへアクセスし、認証コードを取得する。 | * 出力先ファイルに記載された URLへアクセスし、認証コードを取得する。 | ||
Line 26: | Line 33: | ||
==== サーバ証明書の更新 ==== | ==== サーバ証明書の更新 ==== | ||
サーバ証明書の有効期間が 90日となっている。更新忘れが発生しないよう自動更新の設定を行う。 | サーバ証明書の有効期間が 90日となっている。更新忘れが発生しないよう自動更新の設定を行う。 | ||
- | * [[https://letsencrypt.jp/command/|Let's Encrypt 総合ポータル Let's Encrypt ユーザーガイド]]に従い、スクリプトを作成<code> | + | * [[https://free-ssl.jp/docs/using.html/|Let's Encrypt 総合ポータル Let's Encrypt ユーザーガイド]]に従い、スクリプトを作成<code> |
#!/bin/sh | #!/bin/sh | ||
- | /usr/local/bin/certbot renew --pre-hook "service apache24 stop" --post-hook "service apache24 start" | + | /usr/local/bin/certbot-3.6 renew --pre-hook "service apache24 stop" --post-hook "service apache24 start" |
</code> | </code> | ||
* prisoner web の /etc/periodic/weekly に配置する | * prisoner web の /etc/periodic/weekly に配置する |