Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Sumo 03.09.2007 11:23
... можем и совсем от времкенных файлов уйти:$sendmail -t <<ENDBLOCK Date: $msgdate From: $from To: $recipient Subject: $subject [$msgdate] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="$boundary" Content-Disposition: inline --$boundary Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Бэкап вашей базы MySQL и файлов, сделанный $msgdate --$boundary Content-Type: $mimetype;name="$attachment_mysql" Content-Disposition: attachment; filename="$attachment_mysql" Content-Transfer-Encoding: base64 `mysqldump --opt --quote-names -u $DBUSER -p$DBPASS $DBNAME \ | gzip -9c \ | uuencode -m $attachment_mysql \ | sed '1d'` --$boundary Content-Type: $mimetype;name="$attachment_files" Content-Disposition: attachment; filename="$attachment_files" Content-Transfer-Encoding: base64 `tar --create \ --exclude='parser3.cgi' \ --exclude='*.so' \ --exclude='*.bak' \ --exclude='*.cache' \ --file - $files_to_backup \ | gzip -9c \ | uuencode -m $attachment_files \ | sed '1d'` --$boundary-- ENDBLOCK