How to move mail data + db to external RAID volume
Since mail is very critical to not have working I'd like to make sure I am using the best procedure for the job as well as using a method that is as non-destructive as possible (by this I mean that future Apple sw-updates should not be "disturbed" by the change).
*Can I:*
1. Stop the mailservice
2. Use mailbfr to create a fresh backup copy
NB.: mailbfr is already running daily via cron
3. Move (well actually copy) using cp, ditto or rsync
/var/imap TO /Volumes/xraid/mail/imap
/var/spool/imap TO /Volumes/xraid/mail/spool/imap
4. Change the pointers via Server Admin GUI (or edit the relevant conf file with vi)
/var/imap TO /Volumes/xraid/mail/imap
/var/spool/imap TO /Volumes/xraid/mail/spool/imap
5. Start the mailservice
6. Test that everything works
*HOW TO Maintain high uptime*
Since the copying takes a very long time (there is a gazillion messages and it an old slow G4 server) I would like to know if this would work:
A. Copy /var/spool/imap TO /Volumes/xraid/mail/spool/imap with cp
After testing the procedure (step 1-6 above) then
B. Stop the mailservice
C. Copy the last changes from /var/spool/imap TO /Volumes/xraid/mail/spool/imap with rsync
D. Copy the database from /var/spool/imap TO /Volumes/xraid/mail/spool/imap
E. Change the pointers in Server Admin (same as step 4. above)
F. Start the mailservice (same as step 5. above)
iMac 24" and a lot more, Mac OS X (10.5.2)