Re: [qmailtoaster] qtp-backup - ezmlm lists??
Am 13.03.2012 um 13:24 schrieb Eric Shubert: It doesn't appear to me that qtp-backup/qtp-restore handles ezmlm lists. Does anyone know where ezmlm stuff resides?? (FWIW, I expect that we'll be using this to migrate the qmailtoaster lists soon) Hi Eric, ezmlm stuff will appear as an individual user folder within the domain. The folder has the name of the mailing list and all relevant content will be stored in special subfolders. So, backing up all domains will also backup ezmlm! Martin PS: a ezmlm mailing list folder could look like this: drwx-- 3 vpopmail vchkpw 4096 Jan 7 2011 allow drwx-- 2 vpopmail vchkpw 4096 Jan 7 2011 archive -rw--- 1 vpopmail vchkpw0 Jan 7 2011 archived drwx-- 2 vpopmail vchkpw 4096 Jan 7 2011 bounce -rw--- 1 vpopmail vchkpw 96 Jan 7 2011 bouncer -rw--- 1 vpopmail vchkpw 215 Jan 7 2011 config -rw--- 1 vpopmail vchkpw 519 Jan 7 2011 editor -rw--- 1 vpopmail vchkpw 236 Jan 7 2011 headeradd -rw--- 1 vpopmail vchkpw 145 Jan 7 2011 headerremove -rw--- 1 vpopmail vchkpw0 Jan 7 2011 indexed -rw--- 1 vpopmail vchkpw 15 Jan 7 2011 inhost -rw--- 1 vpopmail vchkpw 23 Jan 7 2011 inlocal -rw--- 1 vpopmail vchkpw 268 Jan 7 2011 key -rw--- 1 vpopmail vchkpw0 Jan 7 2011 lock -rw--- 1 vpopmail vchkpw0 Jan 7 2011 lockbounce -rw--- 1 vpopmail vchkpw 908 Jan 7 2011 Log -rw--- 1 vpopmail vchkpw 51 Jan 7 2011 mailinglist -rw--- 1 vpopmail vchkpw 298 Jan 7 2011 manager drwx-- 6 vpopmail vchkpw 4096 Jan 7 2011 mod -rw--- 1 vpopmail vchkpw 158 Jan 7 2011 moderator -rw--- 1 vpopmail vchkpw1 Jan 7 2011 modpost -rw--- 1 vpopmail vchkpw 15 Jan 7 2011 outhost -rw--- 1 vpopmail vchkpw9 Jan 7 2011 outlocal -rw--- 1 vpopmail vchkpw 103 Jan 7 2011 owner -rw--- 1 vpopmail vchkpw 15 Jan 7 2011 prefix drwx-- 2 vpopmail vchkpw 4096 Jan 7 2011 subscribers drwx-- 2 vpopmail vchkpw 4096 Jan 7 2011 text signature.asc Description: Message signed with OpenPGP using GPGMail
RE: [qmailtoaster] qtp-backup
I find it has been server-dependant (...age, load, amount of storage). My storage is about half of what you have, and I know it seems to take around :45mins. ...though the servers here are not new by any means (HP Proliant DL320 G3's). The process, if I remember correctly, makes the copy of the data by using a compression statement (tar/gz). It could be the compression that is taking a while (especially on older equipment). -Pat. From: Scott Hughes [mailto:sc...@renshawauto.net] Sent: Tuesday, March 29, 2011 11:24 AM To: qmailtoaster-list@qmailtoaster.com Subject: [qmailtoaster] qtp-backup I was just curious. I am testing qtp-backup to see how long it runs. I'm currently at 1 hour and 25 minutes and still going. Current directory (/backup/qmailbkup) size is 7.2 Gig (/home/vpopmail/domains is 16 Gig uncompressed). Is this normal? Am I running to correct/best/fastest backup script? My goal here is to put qtp-backup (or the best backup script) into a cron job that runs every night, then after waiting MORE than the amount of time it takes to run the qtp-backup script, rsync the backup file(s) over to a another server. Thanks, Scott
Re: [qmailtoaster] qtp-backup glitch
On 08/11/2010 02:53 PM, David Milholen wrote: Ok, I am trying to migrate from an older dying machine to a newer machine till I can get the old one repaired and updated. Here is what I am having trouble with.. The qtp-restore which is V2.11 is having issues copying all of the accounts in some of the domains. E.G.. /Home/vpopmail/domains to include the postmaster accounts. I can do a manual move of these accounts and all seems ok. Except my vqadmin becomes broken. Here is what the old machine has: qtp-whatami qtp-whatami v0.3.5 DISTRO=CentOS OSVER=4.8 QTARCH=i686 QTKERN=2.6.9-89.0.23.ELsmp BUILD_DIST=cnt40 BUILD_DIR=/usr/src/redhat This machine's OS is supported and has been tested Here is what the new machine has: qtp-whatami v0.3.6 DISTRO=CentOS OSVER=5.5 QTARCH=i686 QTKERN=2.6.18-194.8.1.el5 BUILD_DIST=cnt50 BUILD_DIR=/usr/src/redhat This machine's OS is supported and has been tested The hardware for the new one is beefy-er also. I am having trouble understanding why the backup is broken? I cant seem to pin it down to HHD or just some script issue. Any help would be great.. --Thanks -Dave -- David Milholen Project Engineer 501-318-1300 Wireless Etc Here is what I got after running the command that is in the qtp-backup script tar cfj domainstar /home/vpopmail/domains tar: Removing leading `/' from member names tar: /home/vpopmail/domains/wletc.com/pearcy-update/Log: File shrank by 701 bytes; padding with zeros tar: Error exit delayed from previous errors It seems like there is something in this log that may be causing issues. I know it hangs during restore on this log also. --Dave -- David Milholen Project Engineer 501-318-1300 Wireless Etc
Re: [qmailtoaster] qtp-backup as root
Sharon McNeal wrote: Jake Vickers wrote: I found where the issue was coming into play. When the script was refactored a space was accidentially introduced into the mysqldump routine that should not be there. I have fixed the error and if you download just the qtp-backup script from the QTP web site (http://qtp.qmailtoaster.com) this will correct the issue. Or you can edit the qtp-backup script and change line number 172 to look like this: -p$mysql_password \ Thanks that did work. It appears that when we keep a few days worth of backups in our /backup/qmailbkup directory, that the old backups are being included when the script condenses all the individual backups into 1 file. How would we modify the qtp-backup script so it only condenses down the current backup information into one file and leaves the previous backups alone? We are setting up the server so the qtp-backup script runs each night using our /etc/crontab file. Then we copy the backup file to an external USB hard drive. We also have lines to delete out the backups that are older than 3 days on the server itself and older than 14 days on the external USB hard drive. In case other people are interested in backing up to an external USB Drive -- We do this with the following lines in our /etc/crontab file: # backup the qmailtoaster data files including squirrelmail plugins 05 2 * * * root /usr/sbin/qtp-backup # copy today's backup file to USB drive to the postofficeBkups directory 32 03 * * * root find /backup/qmailbkup/* -type f -name '*' -mtime -1 -exec cp {} /mnt/usbdrive/postofficeBkups/ \; # delete local mail backups more than 3 days old 32 04 * * * root find /backup/qmailbkup/ -type f -cmin +4320 -exec rm -f {} \; # delete mail backups more than 14 days old (from time changed) on external USB drive 01 05 * * * root find /mnt/usbdrive/postofficeBkups/ -type f -ctime 14 -exec rm -f {} \; Sharon, Rather than putting each command as a separate cron entry and having to worry about timing, it would be a better practice to put all of the commands in one script, then invoke the script with a single crontab entry. The /usr/local/bin/mybackup script would look like this: #!/bin/sh # script to backup qmt, and manage backup files # # do the backup qtp-backup # # copy today's backup file to USB drive to the postofficeBkups directory find /backup/qmailbkup/* -type f -name '*' -mtime -1 \ -exec cp {} /mnt/usbdrive/postofficeBkups/ \; # # delete local mail backups more than 3 days old find /backup/qmailbkup/ -type f -cmin +4320 \ -exec rm -f {} \; # # delete mail backups more than 14 days old (from time changed) # on external USB drive find /mnt/usbdrive/postofficeBkups/ -type f -ctime 14 \ -exec rm -f {} \; exit 0 Then you can start the whole process with a single crontab entry: 05 2 * * * root /usr/local/bin/mybackup and you don't need to worry about one step finishing before the next one is executed. Be sure that your script file's execute bits are turned on: # chmod 755 /usr/local/bin/mybackup If the exact time of day isn't critical, you can alternatively put your script in the /etc/cron.daily/ directory, and it will run every day at 4am, and you won't have to change the crontab file at all. Hope that helps. (and thanks again!) -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] qtp-backup as root
Jake Vickers wrote: I found where the issue was coming into play. When the script was refactored a space was accidentially introduced into the mysqldump routine that should not be there. I have fixed the error and if you download just the qtp-backup script from the QTP web site (http://qtp.qmailtoaster.com) this will correct the issue. Or you can edit the qtp-backup script and change line number 172 to look like this: -p$mysql_password \ Thanks that did work. It appears that when we keep a few days worth of backups in our /backup/qmailbkup directory, that the old backups are being included when the script condenses all the individual backups into 1 file. How would we modify the qtp-backup script so it only condenses down the current backup information into one file and leaves the previous backups alone? We are setting up the server so the qtp-backup script runs each night using our /etc/crontab file. Then we copy the backup file to an external USB hard drive. We also have lines to delete out the backups that are older than 3 days on the server itself and older than 14 days on the external USB hard drive. In case other people are interested in backing up to an external USB Drive -- We do this with the following lines in our /etc/crontab file: # backup the qmailtoaster data files including squirrelmail plugins 05 2 * * * root /usr/sbin/qtp-backup # copy today's backup file to USB drive to the postofficeBkups directory 32 03 * * * root find /backup/qmailbkup/* -type f -name '*' -mtime -1 -exec cp {} /mnt/usbdrive/postofficeBkups/ \; # delete local mail backups more than 3 days old 32 04 * * * root find /backup/qmailbkup/ -type f -cmin +4320 -exec rm -f {} \; # delete mail backups more than 14 days old (from time changed) on external USB drive 01 05 * * * root find /mnt/usbdrive/postofficeBkups/ -type f -ctime 14 -exec rm -f {} \;
Re: [qmailtoaster] qtp-backup as root
Sharon McNeal wrote: Hello List, We have been unable to alter the script correctly in qtp-backup so it will backup the mysql vpopmail database as the user root with our root password. I found where the issue was coming into play. When the script was refactored a space was accidentially introduced into the mysqldump routine that should not be there. I have fixed the error and if you download just the qtp-backup script from the QTP web site (http://qtp.qmailtoaster.com) this will correct the issue. Or you can edit the qtp-backup script and change line number 172 to look like this: -p$mysql_password \
Re: [qmailtoaster] qtp-backup as root
Sharon McNeal wrote: Hello List, We have been unable to alter the script correctly in qtp-backup so it will backup the mysql vpopmail database as the user root with our root password. We have tried making some changes to the following files, but have not gotten everything right because it still is not working: /usr/sbin/qtp-config /usr/sbin/qtp-backup /opt/qmailtoaster-plus/bin/qtp-config /opt/qmailtoaster-plus/bin/qtp-backup /home/vpopmail/etc/vpopmail.mysql Can someone please tell us specifically which file(s) we need to change and specifically which lines to change (with an example of what we should change it to) so it will not prompt for the vpopmail user password but use the specified root password? Also, we would like to have it back up automatically each day. Do we just need to add the following line in our /etc/crontab file to make it run at 4 am each day: *4 * * * root /usr/sbin/qtp-backup Thank you in advance It should not ask for the password. It will read it from /home/vpopmail/etc/vpopmail.mysql You need to run the script as the root user so that it can read the data from the file. If you are still having problems you can edit the /opt/qmailtoaster-plus/bin/qtp-backup file, and change these lines: # MYSQL variables mysqlfile=/home/vpopmail/etc/vpopmail.mysql; mysqlhost=`cut -d\| -f1 $mysqlfile`; mysqlport=`cut -d\| -f2 $mysqlfile`; mysqluser=`cut -d\| -f3 $mysqlfile`; mysqlpswd=`cut -d\| -f4 $mysqlfile`; mysqldb=`cut -d\| -f5 $mysqlfile`; Just change mysqlhost to mysqlhost=localhost mysqluser to mysqluser=root mysqlpswd to mysqlpswd=password mysqldb to mysqldb=vpopmail - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Qtp-backup script mods?
Dear Patrick, Just try this options while you taking backup through rsync.. rsync -vruptogl Regards, Ganesh Payelkar On Mon, Jun 29, 2009 at 6:43 PM, Patrick Ring pr...@pringtech.net wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Thank you, Patrick Ring - Qmailtoaster is sponsored by Vickers Consulting Group ( www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Qtp-backup script mods?
Patrick Ring wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Usually when I have to start thinking of things like on systems, I just rsync the /home/vpopmail/domains dir. Only move files that need to be moved that way, and rsync will gzip compress on the fly anyway. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
RE: [qmailtoaster] Qtp-backup script mods?
Wouldn't that be about the same as rsync -auv ?? Also, am I mistaken that if the filenames are different it uploads the backup as a whole instead of just synchronizing? ...or is rsync capable of looking into the gziped archives? Thank you, Patrick Ring From: Ganesh Payelkar [mailto:gpayel...@gmail.com] Sent: 2009-06-29 08:27 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Qtp-backup script mods? Dear Patrick, Just try this options while you taking backup through rsync.. rsync -vruptogl Regards, Ganesh Payelkar On Mon, Jun 29, 2009 at 6:43 PM, Patrick Ring pr...@pringtech.net wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Thank you, Patrick Ring - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
RE: [qmailtoaster] Qtp-backup script mods?
That would make sense... Barring no changes have occurred to the accounts/domains on the server. I guess at that point an rsync/rdiff of the /home/vpopmail/domains on an hourly basis would be effective for the basic data and then on a daily basis mirror/sync the rest of the data (mysql, qmail control, squirrelmail, etc). Thanks, Patrick Ring -Original Message- From: Jake Vickers [mailto:j...@qmailtoaster.com] Sent: 2009-06-29 08:36 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Qtp-backup script mods? Patrick Ring wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Usually when I have to start thinking of things like on systems, I just rsync the /home/vpopmail/domains dir. Only move files that need to be moved that way, and rsync will gzip compress on the fly anyway. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Qtp-backup script mods?
Dear Patrick, Try this syntax for synchronization, if your old copy or file from original server get deleted then from your data backup server that file also get deleted.. try to rsync --help and find out option which is better for you. /usr/bin/rsync -vruptogl --delete-before Regards, Ganesh Payelkar INDIA On Mon, Jun 29, 2009 at 7:12 PM, Patrick Ring pr...@pringtech.net wrote: Wouldn't that be about the same as rsync -auv ?? Also, am I mistaken that if the filenames are different it uploads the backup as a whole instead of just synchronizing? ...or is rsync capable of looking into the gziped archives? Thank you, Patrick Ring -- *From:* Ganesh Payelkar [mailto:gpayel...@gmail.com] *Sent:* 2009-06-29 08:27 *To:* qmailtoaster-list@qmailtoaster.com *Subject:* Re: [qmailtoaster] Qtp-backup script mods? Dear Patrick, Just try this options while you taking backup through rsync.. rsync -vruptogl Regards, Ganesh Payelkar On Mon, Jun 29, 2009 at 6:43 PM, Patrick Ring pr...@pringtech.net wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Thank you, Patrick Ring - Qmailtoaster is sponsored by Vickers Consulting Group ( www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Qtp-backup script mods?
Hi Patrick, I found rsync not to be very reliable. I use the built in backup for the qmail server. Then I copy the whole tar ball over to a second server using scp ( scp *.tar r...@192.168.11.1:/var/CommuniGate On the second server I use the qmail built in restore, works great. I also put the howto on the wiki, do a search for Automated backup. madmac Patrick Ring wrote: That would make sense... Barring no changes have occurred to the accounts/domains on the server. I guess at that point an rsync/rdiff of the /home/vpopmail/domains on an hourly basis would be effective for the basic data and then on a daily basis mirror/sync the rest of the data (mysql, qmail control, squirrelmail, etc). Thanks, Patrick Ring -Original Message- From: Jake Vickers [mailto:j...@qmailtoaster.com] Sent: 2009-06-29 08:36 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Qtp-backup script mods? Patrick Ring wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Usually when I have to start thinking of things like on systems, I just rsync the /home/vpopmail/domains dir. Only move files that need to be moved that way, and rsync will gzip compress on the fly anyway. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Qtp-backup script mods?
I also rsync the /home/vpopmail/domains directory. I've been thinking that I'd like to see some flexibility built in to qtp-backup. Like separating the user from the config data to begin with, which would be a good start. It could then be used with rsync more effectively. Anyone care to tackle this? Patrick Ring wrote: That would make sense... Barring no changes have occurred to the accounts/domains on the server. I guess at that point an rsync/rdiff of the /home/vpopmail/domains on an hourly basis would be effective for the basic data and then on a daily basis mirror/sync the rest of the data (mysql, qmail control, squirrelmail, etc). Thanks, Patrick Ring -Original Message- From: Jake Vickers [mailto:j...@qmailtoaster.com] Sent: 2009-06-29 08:36 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Qtp-backup script mods? Patrick Ring wrote: Has anyone thought about the idea of removing the date-coding of the script in order to facilitate the full capability of rsync for when you copy your backup files to another location? Just a thought since my backup files are typically 5+GB and growing, an rsync has to move the whole file every time and not just the diffs since the files names and such are different on each backup. Another possibility I've been looking into for a direct mirror is changing the tar statements into either rsync or rdiff-backup statements (once again losing the date-code variables). Any thoughts, or pitfalls? Usually when I have to start thinking of things like on systems, I just rsync the /home/vpopmail/domains dir. Only move files that need to be moved that way, and rsync will gzip compress on the fly anyway. -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
RE: [qmailtoaster] qtp-backup
run like you said but I have this error: [r...@mailserver src]# chmod +x qtp-backup [r...@mailserver src]# ./qtp-backup -bash: ./qtp-backup: /bin/sh^M: bad interpreter: No such file or directory [r...@mailserver src]# -Original Message- From: Jake Vickers [mailto:j...@qmailtoaster.com] Sent: Lunes, 13 de Abril de 2009 06:11 p.m. To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup Noel Rivera (Border Less) wrote: Ok, and how do I run? -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric Shubert Sent: Lunes, 13 de Abril de 2009 05:24 p.m. To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup The current script is named qtp-backup, not qtp-backup.sh. You can find the current version at http://qtp.qmailtoaster.com/trac/browser/bin/qtp-backup Links for alternate download formats are at the bottom of the page. chmod +x qtp-backup ./qtp-backup - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
Re: [qmailtoaster] qtp-backup
Noel Rivera (Border Less) wrote: run like you said but I have this error: [r...@mailserver src]# chmod +x qtp-backup [r...@mailserver src]# ./qtp-backup -bash: ./qtp-backup: /bin/sh^M: bad interpreter: No such file or directory [r...@mailserver src]# It's been converted to a MSDOS format file, you need to convert it back to a Unix type file. dos2unix qtp-backup Or download the file onto the Linux machine without opening/saving it on the Windows machine. - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
RE: [qmailtoaster] qtp-backup
It Works. Thank you very much Jake for your Help. -Original Message- From: Jake Vickers [mailto:j...@qmailtoaster.com] Sent: Martes, 14 de Abril de 2009 09:03 a.m. To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup Noel Rivera (Border Less) wrote: run like you said but I have this error: [r...@mailserver src]# chmod +x qtp-backup [r...@mailserver src]# ./qtp-backup -bash: ./qtp-backup: /bin/sh^M: bad interpreter: No such file or directory [r...@mailserver src]# It's been converted to a MSDOS format file, you need to convert it back to a Unix type file. dos2unix qtp-backup Or download the file onto the Linux machine without opening/saving it on the Windows machine. - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
Re: [qmailtoaster] qtp-backup
The current script is named qtp-backup, not qtp-backup.sh. You can find the current version at http://qtp.qmailtoaster.com/trac/browser/bin/qtp-backup Links for alternate download formats are at the bottom of the page. Noel Rivera (Border Less) wrote: Thanks Jake, I have now the file when I want to run with the command sh qtp-backup.sh I have this Error: [r...@mailserver src]# sh qtp-backup.sh : command not found 2: : command not found 12: : command not found 15: : command not found 20: : command not found 25: : command not found 34: : command not found 39: : command not found 41: : command not found 47: : command not found 49: : command not found 52: : command not found 54: : command not found 58: : command not found 68: : command not found 72: : command not found 75: : command not found 79: : ambiguous redirect80: 1 qtp-backup.sh: line 219: syntax error: unexpected end of file Can you Help me? Thanks *From:* Jake Vickers [mailto:j...@qmailtoaster.com] *Sent:* Lunes, 13 de Abril de 2009 04:53 p.m. *To:* qmailtoaster-list@qmailtoaster.com *Subject:* Re: [qmailtoaster] eMPF patch for 1.3.16 Noel Rivera (Border Less) wrote: Hello List, where can I Find de qtp-backup.sh ? I find in the script in this page http://v2gnu.com/ But when I want to download the file I have this error: An SQL error has occurred. Please see error.log for details. Anybody can help me? Pretty much all of my qmail related scripts are now in Qmailtoaster-Plus (qtp.qmailtoaster.com) -- -Eric 'shubes' - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
RE: [qmailtoaster] qtp-backup
Ok, and how do I run? -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric Shubert Sent: Lunes, 13 de Abril de 2009 05:24 p.m. To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup The current script is named qtp-backup, not qtp-backup.sh. You can find the current version at http://qtp.qmailtoaster.com/trac/browser/bin/qtp-backup Links for alternate download formats are at the bottom of the page. Noel Rivera (Border Less) wrote: Thanks Jake, I have now the file when I want to run with the command sh qtp-backup.sh I have this Error: [r...@mailserver src]# sh qtp-backup.sh : command not found 2: : command not found 12: : command not found 15: : command not found 20: : command not found 25: : command not found 34: : command not found 39: : command not found 41: : command not found 47: : command not found 49: : command not found 52: : command not found 54: : command not found 58: : command not found 68: : command not found 72: : command not found 75: : command not found 79: : ambiguous redirect80: 1 qtp-backup.sh: line 219: syntax error: unexpected end of file Can you Help me? Thanks *From:* Jake Vickers [mailto:j...@qmailtoaster.com] *Sent:* Lunes, 13 de Abril de 2009 04:53 p.m. *To:* qmailtoaster-list@qmailtoaster.com *Subject:* Re: [qmailtoaster] eMPF patch for 1.3.16 Noel Rivera (Border Less) wrote: Hello List, where can I Find de qtp-backup.sh ? I find in the script in this page http://v2gnu.com/ But when I want to download the file I have this error: An SQL error has occurred. Please see error.log for details. Anybody can help me? Pretty much all of my qmail related scripts are now in Qmailtoaster-Plus (qtp.qmailtoaster.com) -- -Eric 'shubes' - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
Re: [qmailtoaster] qtp-backup
Noel Rivera (Border Less) wrote: Ok, and how do I run? -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric Shubert Sent: Lunes, 13 de Abril de 2009 05:24 p.m. To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup The current script is named qtp-backup, not qtp-backup.sh. You can find the current version at http://qtp.qmailtoaster.com/trac/browser/bin/qtp-backup Links for alternate download formats are at the bottom of the page. chmod +x qtp-backup ./qtp-backup - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
Re: [qmailtoaster] qtp-backup and cron
Ariel wrote: hello list, as I can make,, QTP-bakup in cron to run daily at a certain time? If you're asking whether or not you can run qtp-backup from a cron script, then yes, it has been set up[ for this. - Managed Qmailtoaster servers are now available Visit http://qmailtoaster.com/QMTManaged.html to order yours today! Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: testing-unsubscr...@qmailtoaster.com For additional commands, e-mail: testing-h...@qmailtoaster.com
Re: [qmailtoaster] QTP - Backup
Hi, I used my root password to connect to mysql it seems to work no problem. For mysqldump errors below, what could be the better interpretation?. Benedict. [EMAIL PROTECTED] ~]# ./qtp-backup1.sh mysqldump: mysqldump: Couldn't execute 'show fields from `dir_control`': Got error 28 from storage engine (1030) gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Backup is complete and located in: /backup/qmailbkup - Original Message From: Jake Vickers [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Tuesday, August 5, 2008 4:50:15 AM Subject: Re: [qmailtoaster] QTP - Backup Benedict Claver wrote: Hi Team, am trying to use the backup script from http://v2gnu.com site. I have a countered a slight problem on accessing mysql database. I wanted to know can I backup the database with user root apart from user vpopmail. the error noted.. [EMAIL PROTECTED] ~]# ./qtp-backup1.sh . mysqldump: Got error: 1045: Access denied for user 'vpopmail'@'localhost' (using password: YES) when trying to connect gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Backup is complete and located in: /backup/qmailbkup The backup script on my v2gnu.com site isn't up to date. The up to date version is in QTP, from qtp.qmailtoaster.com. You can modify the script to use the root user instead of the vpopmail user. It used to be that way, but many users asked to have it use vpomail so that they did not have to have their mysql root password in the script file and it was changed. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] QTP - Backup
Benedict Claver wrote: Hi, I used my root password to connect to mysql it seems to work no problem. For mysqldump errors below, what could be the better interpretation?. Benedict. [EMAIL PROTECTED] ~]# ./qtp-backup1.sh mysqldump: mysqldump: Couldn't execute 'show fields from `dir_control`': Got error 28 from storage engine (1030) gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Backup is complete and located in: /backup/qmailbkup Without seeing what is changed in the script, I cannot really say. You may have a corrupted field in the dir_control table from what the error reads. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] QTP - Backup
Benedict Claver wrote: Hi Team, am trying to use the backup script from http://v2gnu.com site. I have a countered a slight problem on accessing mysql database. I wanted to know can I backup the database with user root apart from user vpopmail. the error noted.. [EMAIL PROTECTED] ~]# ./qtp-backup1.sh . mysqldump: Got error: 1045: Access denied for user 'vpopmail'@'localhost' (using password: YES) when trying to connect gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Backup is complete and located in: /backup/qmailbkup The backup script on my v2gnu.com site isn't up to date. The up to date version is in QTP, from qtp.qmailtoaster.com. You can modify the script to use the root user instead of the vpopmail user. It used to be that way, but many users asked to have it use vpomail so that they did not have to have their mysql root password in the script file and it was changed. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup issue - ftp not working
Do you have qtp installed? You should set your parameters in /opt/qtp/config/qtp-config Natalio. On Mon, Apr 14, 2008 at 1:54 AM, Robert S Galloway [EMAIL PROTECTED] wrote: Hey guys, I'm running the latest version of QTP and running the qtp-backup script. The backup SEEMS to be running just fine (I haven't unpacked one to look yet), but it is not e-mailing, deleting the old backup or running the FTP piece. The script is the stock script with my info added at the top. My host is CentOS 5 32-bit. I'm running the script as root. I do not get any output except Backup is complete and located in: /backup/qmailbkup. The script has the email, ftp and remove variables set to y. Thanks, Robert - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup Documentation
Andrew Niemantsverdriet wrote: Where would I find documentaion on qtp-backup. There is no man pages and the wiki does not have anything on it. Nobody's written any that I know of. I put a lot of notes in the top of the script though. Do you have a specific question? - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup Documentation
No not really, I lost my ssh session and was not using screen so I wanted to make sure that having is stop in the middle of what it was doing did not harm anything. Thanks, _ /-\ ndrew On Wed, Apr 2, 2008 at 6:52 AM, Jake Vickers [EMAIL PROTECTED] wrote: Andrew Niemantsverdriet wrote: Where would I find documentaion on qtp-backup. There is no man pages and the wiki does not have anything on it. Nobody's written any that I know of. I put a lot of notes in the top of the script though. Do you have a specific question? - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [qmailtoaster] qtp-backup Documentation
Here's what I get when mine runs... The Toaster Backup has Run. Please verify that it did it correctly. Backup Start Time: Tue-04/01/[EMAIL PROTECTED]:30:11-EDT Backup End Time: Tue-04/01/[EMAIL PROTECTED]:55:29-EDT Backup Contents: -rw-r--r-- root/root 234 2008-04-01 22:27:27 200804011930-assign.tar.bz2 -rw-r--r-- root/root 1038 2008-04-01 19:30:11 200804011930-qmailcontrol.tar.bz2 -rw-r--r-- root/root 3235 2008-04-01 22:27:27 200804011930-vpopmail.sql.gz -rw-r--r-- root/root 3939485193 2008-04-01 22:27:27 200804011930-vpopmail.tar.bz2 ls -lh command on /backup/qmailbkup total 3.7G -rw-r--r-- 1 root root 3.7G Apr 1 22:55 200804011930-backup.tar.gz -Original Message- From: Andrew Niemantsverdriet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 9:26 AM To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup Documentation How long should this script take? It has been running forever (like 20mins) with out any output at all. Thanks, _ /-\ ndrew On Wed, Apr 2, 2008 at 7:23 AM, Phil Leinhauser [EMAIL PROTECTED] wrote: Find the qtp-backup and qtp-restore files and open them in text editor. It's remarked pretty well plus the script isn't complicated. You should be able to follow what it's doing fairly easily. It's simply copying the files to a bunch of RARs and then RARing them into one big RAR. The simplicity of it is the best part. -Original message- From: Andrew Niemantsverdriet [EMAIL PROTECTED] Date: Wed, 02 Apr 2008 08:48:47 -0400 To: qmailtoaster-list@qmailtoaster.com Subject: [qmailtoaster] qtp-backup Documentation Where would I find documentaion on qtp-backup. There is no man pages and the wiki does not have anything on it. Thanks, _ /-\ ndrew - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup Documentation
Andrew Niemantsverdriet wrote: How long should this script take? It has been running forever (like 20mins) with out any output at all. It compresses all the mail on the system so that when you restore you retain all messages. Depending on how many messages (and their size - keep in mind attachments) it can take a while. My main system that I run my domains on takes 75 minutes or so. You can always open another session and run top to see that gzip is still running. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup Documentation
Ok, just a new tool so I was not sure exactly how to use it. Now onto updating stuff. Thanks everybody, _ /-\ ndrew On Wed, Apr 2, 2008 at 7:44 AM, Jake Vickers [EMAIL PROTECTED] wrote: Andrew Niemantsverdriet wrote: How long should this script take? It has been running forever (like 20mins) with out any output at all. It compresses all the mail on the system so that when you restore you retain all messages. Depending on how many messages (and their size - keep in mind attachments) it can take a while. My main system that I run my domains on takes 75 minutes or so. You can always open another session and run top to see that gzip is still running. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup Documentation
Jake, Was there a reason you didn't include the tcp.smtp file in the backup? That looked like the only file that didn't get moved when I moved my post office a couple weeks ago. Phil -Original message- From: Jake Vickers [EMAIL PROTECTED] Date: Wed, 02 Apr 2008 09:43:36 -0400 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup Documentation Andrew Niemantsverdriet wrote: How long should this script take? It has been running forever (like 20mins) with out any output at all. It compresses all the mail on the system so that when you restore you retain all messages. Depending on how many messages (and their size - keep in mind attachments) it can take a while. My main system that I run my domains on takes 75 minutes or so. You can always open another session and run top to see that gzip is still running. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] qtp-backup Documentation
I thought it was something like that. Thanks -Original message- From: Jake Vickers [EMAIL PROTECTED] Date: Wed, 02 Apr 2008 10:35:12 -0400 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] qtp-backup Documentation Phil Leinhauser wrote: Jake, Was there a reason you didn't include the tcp.smtp file in the backup? That looked like the only file that didn't get moved when I moved my post office a couple weeks ago. At the time I did the last change, the tcp.smtp file was undergoing changes as QMT evolved. I was also using it to upgrade systems to newer versions at the time and old tcp.smtp files would not work with the newer system, so I left them out. I figured the default would work fine for most applications, so did not include it. I'll make a note and include an option to restore it in the next release. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]