Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- i="0"
- while true
- do
- {
- echo
- date
- dest=backup/`date +%T_%d.%a`
- from=~/Documents
- mkdir $dest
- rsync -raz $from $dest
- echo complete
- } >> ~/backup.log 2>&1
- sleep 300
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement