From 49263f0d40bc5b3e891ca7c94fa94a6ec0cc0f97 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 10 Mar 2020 17:11:41 +0800 Subject: [PATCH] remove special character in foler name for crontab autobackup mongodb --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e4a9672..8498c42 100644 --- a/README.md +++ b/README.md @@ -121,8 +121,8 @@ $ # Login the new create site with rulingcom account and choose “Admin Area” ```sh $ 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 網站目錄備份