From 9017d4d8c3bdc36a3b9679112cad4a6b529921c4 Mon Sep 17 00:00:00 2001 From: Song Zheng Date: Sun, 22 Mar 2020 21:57:31 -0700 Subject: [PATCH] update scripts --- README.md | 2 +- scripts/backup.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b4f810..ce6966f 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,4 @@ To backup your notes, do the following steps: * example output: `/home/user55/noteapp` 2. Open crontab: `crontab -e` 3. Add the following command (New Line). Replace `/home/user55/noteapp` with your own installation path - * `* * * * * /home/user55/noteapp/scripts/backup.sh >> /home/user55/noteapp/logs/backup.log` + * `* * * * * cd /home/user55/noteapp && ./scripts/backup.sh >> ./logs/backup.log` diff --git a/scripts/backup.sh b/scripts/backup.sh index d31a498..223924f 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -1,6 +1,8 @@ #!/bin/bash cd ./data +echo "current folder" +pwd echo "running backup current time:" date echo "pushing...."