Changes between Version 11 and Version 12 of InstallationGuidelines/Linux/Server/ApacheMySQL
- Timestamp:
- 10/26/11 20:26:26 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Linux/Server/ApacheMySQL
v11 v12 125 125 cat << EOF > "/usr/local/bin/backup" 126 126 #!/bin/sh 127 NOW= $(date +"%Y-%m-%d")128 mysqldump sahana > /root/backup- $NOW.sql129 OLD= $(date --date='7 day ago' +"%Y-%m-%d")130 rm -f /root/backup- $OLD.sql127 NOW=\$(date +"%Y-%m-%d") 128 mysqldump sahana > /root/backup-\$NOW.sql 129 OLD=\$(date --date='7 day ago' +"%Y-%m-%d") 130 rm -f /root/backup-\$OLD.sql 131 131 EOF 132 132 chmod +x /usr/local/bin/backup