Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-05-03 11:02:39
- pyer
- Member
- From: France
- Registered: 2006-01-28
- Posts: 11
Script automysqlbackup
@hcgtv and linux lovers
I use the script automysqlbackup which work fine.
But, the option “files” (which send log file and sql file as attachements) work only if Mutt is installed on the server
Is somebody know , if a solution exist without the presence of Mutt
Thanks for your response.
Pierre
Last edited by pyer (2007-05-03 11:05:52)
Offline
Re: Script automysqlbackup
did you try a cron job?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Script automysqlbackup
Yep, I ran into this some time back.
At the time, I had a friend hack the script to use metamail instead, then installed metamail.
Not sure I can be more helpful than that, sorry.
Offline
#4 2007-05-03 15:52:40
- pyer
- Member
- From: France
- Registered: 2006-01-28
- Posts: 11
Re: Script automysqlbackup
Thanks for yours answers : mrdale and colak.
Colak —> did you try a cron job ? i ‘m not sure that your answer has a relation with my question ;O)
Offline
Offline
Re: Script automysqlbackup
Yep, but what pyer is asking doesn’t relate to cron in any way. The script calls on “mutt” which is a unix app to mail out the database dumps when called. His server does not have mutt installed.
He can call the script with cron till the cows come home but it’s not going to run something that’s not there. Hence the metamail solution. However, I suppose if you can install “metamail” you can probably install “mutt”.
Good luck.
Last edited by mrdale (2007-05-03 17:10:50)
Offline
Re: Script automysqlbackup
mrdale wrote:
He can call the script with cron till the cows come home but it’s not going to run something that’s not there. Hence the metamail solution. However, I suppose if you can install “metamail” you can probably install “mutt”.
That’s why you are a web pro and I’m not:) Thought I was helping there:(
Last edited by colak (2007-05-03 17:33:45)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Script automysqlbackup
Mutt can handle attachments:
BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments
mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE #send via mutt
Neither Pine nor Elm can cope nicely with email attachments, the other two email alternatives that might be on your web server. I would ask your hosting provider to install Mutt, they may comply.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Script automysqlbackup
sorry colak, didn’t mean to sound snappy.
I’m far from a pro, just happened to have some background on this one.
If you are posting, you are helping… :)
Offline
Pages: 1