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...."