Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Zheng committed Mar 23, 2020
1 parent 213f971 commit 9017d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 2 additions & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

cd ./data
echo "current folder"
pwd
echo "running backup current time:"
date
echo "pushing...."
Expand Down

0 comments on commit 9017d4d

Please sign in to comment.