Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2007-05-03 12:02:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#3 2007-05-03 15:14:28

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#5 2007-05-03 16:59:39

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Script automysqlbackup

cron schedules tasks, such as backing up.

Offline

#6 2007-05-03 17:10:22

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#7 2007-05-03 17:32:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#8 2007-05-04 02:33:02

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

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.

Offline

#9 2007-05-04 04:13:59

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

Board footer

Powered by FluxBB