Skip to content

Commit

Permalink
Merge pull request #15 from songz/s4
Browse files Browse the repository at this point in the history
update scripts
  • Loading branch information
songz authored Mar 23, 2020
2 parents 213f971 + 9017d4d commit d371c40
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 d371c40

Please sign in to comment.