Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
#!/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..."