jepoy <[EMAIL PROTECTED]> wrote:


Rafael 'Dido' Sevilla <[EMAIL PROTECTED]> wrote:
jepoy wrote:
> hi guys,
> i just want to ask if its ok to backup /var/spool/mail without stopping
> mail services. Im doing a backup solution wherein i would like to backup
> the mails every midnight.Do i need stop mail services before backup or
> its not an issue ?

That depends on what kind of mailbox format you have. If you're using
maildirs or something similar, you're in luck. If you're still using
mboxes, you may have locking issues. If an email comes in while you're
in the middle of backing stuff up, you could have a mailbox whose
partial contents you're saving into your backup. It will be a corrupt
mbox with a portion of the mail at the end, easily recoverable, but a
damned nuisance. It would be safer to shut down mail service while you
back up in that case; at any rate, any decent MTA attempting to send
mail to your system while it's down will have the sense to queue the
mail and then try again a few hours later, by which time your backup
should be done. I seriously doubt that you have more than a thousand
users and even if you do I doubt that more than a few of them will
consume more than a couple megabytes of mail at any given time, so the
backup process may take more like a few minutes.

--
yup im using mbox, havent change to maildir. ill just do a separate script for shutting my mailservicees down.

tnx.

=)





follow up question, im doing a backup script with help of crond. if i edit my root crontab will it affect my other cronjobs ? like for an example my clamav updates every hour.
Feb 17 05:01:02 mail crond[10447]: (root) CMD (run-parts /etc/cron.hourly)
Feb 17 06:01:01 mail crond[10623]: (root) CMD (run-parts /etc/cron.hourly)
Feb 17 07:01:02 mail crond[10786]: (root) CMD (run-parts /etc/cron.hourly)
Feb 17 08:01:01 mail crond[11005]: (root) CMD (run-parts /etc/cron.hourly)
Feb 17 09:01:01 mail crond[11181]: (root) CMD (run-parts /etc/cron.hourly)
Feb 17 10:01:01 mail crond[11380]: (root) CMD (run-parts /etc/cron.hourly)
Feb 17 11:01:01 mail crond[11541]: (root) CMD (run-parts /etc/cron.hourly)

 ill be using the root to run my backup cron jobs. when i check my crontab
[EMAIL PROTECTED] home]# crontab -u root -l
no crontab for root

will this affect my other cronjobs running on root ?





JCB
jeffersondotbrionesdotgmaildotcom
Registered Linux User #371834
 


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to