Update README.md
This commit is contained in:
parent
e651866c1a
commit
9ab8d79314
|
@ -142,8 +142,8 @@ sudo apt-get install -y postfix
|
|||
sudo service postfix start
|
||||
$ sudo crontab -e
|
||||
# 內容如下:
|
||||
# 0 3 * * * mongodump -o /home/backup/db/`date "+\%Y\%m\%d"`_db
|
||||
# 0 4 * * * rm -fr /home/backup/db/`date --date="1 week ago" "+\%Y\%m\%d"`_db
|
||||
0 3 * * * mongodump -o /home/backup/db/`date "+\%Y\%m\%d"`_db
|
||||
0 4 * * * rm -fr /home/backup/db/`date --date="1 week ago" "+\%Y\%m\%d"`_db
|
||||
```
|
||||
|
||||
### 二、R4.5 網站目錄備份
|
||||
|
@ -156,7 +156,8 @@ $ sudo mkdir /home/backup/orbit
|
|||
$ sudo chmod 777 /home/backup/orbit
|
||||
$ rsnapshot -t daily # 測試是否設定正確
|
||||
$ sudo crontab -e # 加入下行內容後,儲存退出
|
||||
# 15 4 * * * /usr/bin/rsnapshot daily
|
||||
|
||||
15 4 * * * /usr/bin/rsnapshot daily
|
||||
```
|
||||
|
||||
```txt
|
||||
|
|
Loading…
Reference in New Issue