Changes between Version 39 and Version 40 of InstallationGuidelines/Linux/Server/CherokeePostgreSQL


Ignore:
Timestamp:
03/14/12 16:47:43 (13 years ago)
Author:
Praneeth Bodduluri
Comment:

Added backup of uploads directory

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Linux/Server/CherokeePostgreSQL

    v39 v40  
    420420OLD=\$(date --date='7 day ago' +"%Y-%m-%d")
    421421rm -f /var/backups/eden/sahana-\$OLD.sql
     422mkdir /var/backups/eden/uploads
     423tar -cf /var/backups/eden/uploads/uploadsprod-$NOW.tar -C /home/web2py/applications/eden  ./uploads
     424bzip2 /var/backups/eden/uploads/uploadsprod-$NOW.tar
     425rm -f /var/backups/eden/uploads/uploadsprod-$OLD.tar.bz2
    422426EOF
    423427chmod +x /usr/local/bin/backup