LoginSignup
2
2

More than 5 years have passed since last update.

rysnc&cronによるバックアップシステム

Posted at

パスなしssh

サーバ側で鍵を作成し,バックアップサーバに送る.

ssh-keygen
scp id_rsa.pub

バックアップ側で,以下のconfigを作成.

PermitRootLogin yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

cron設定

/etc/cron.weekly/にシェルをおく.
次に,
```
crontab -e

  • * * * * * /etc/cron.weekly/bkup.sh ```
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2