Changes between Version 19 and Version 20 of SysAdmin/Pootle
- Timestamp:
- 05/24/13 11:12:23 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SysAdmin/Pootle
v19 v20 126 126 If the script fails, check for the presence of a ` in a T("") - this causes the languages.py to reset the languages/* to default &/or stop web2py2po from working! 127 127 128 128 === Backups === 129 {{{ 130 cat << EOF > "/usr/local/bin/backup" 131 #!/bin/sh 132 NOW=\$(date +"%Y-%m-%d") 133 tar cvf /root/po-\$NOW.tar 134 gzip -9 /root/po-\$NOW.tar 135 mysqldump pootle> /root/backup-\$NOW.sql 136 OLD=\$(date --date='7 day ago' +"%Y-%m-%d") 137 rm -f /root/backup-\$OLD.sql 138 rm -f /root/po-\$OLD.tar.gz 139 EOF 140 chmod +x /usr/local/bin/backup 141 }}} 129 142 == !ToDo == 130 143 * Link to the s3translate module within Sahana