Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- WWW_ROOT="/var/www/html"
- BACKUP_ROOT="/home/foo/backup"
- echo "rsync web pages..."
- for i in `ls -1d *`; do
- cd $i
- rsync -a . $BACKUP_ROOT/webpages/$i
- git init
- git add -A
- git commit -am "Daily commit."
- cd ..
- echo "/rsync web pages..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement