Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for D in /var/www/*
- do
- echo ${D##*/}
- nice -n 10 7z a /backup/webs/${D##*/}_`date +"%m_%d_%Y"`.7z /var/www/${D##*/}
- done
- #Delete files older than 15d
- find /backup/webs -type f -mtime +15 -exec rm {} \;
- test -x /usr/sbin/automysqlbackup || exit 0
- /usr/sbin/automysqlbackup
Advertisement
Add Comment
Please, Sign In to add comment