restore a permission messed up backup
"Matthias Güntert"
MatzeGuentert at gmx.de
Sat Jul 18 07:56:22 EDT 2009
hello guys
I have created a backup of my running IMAP server (cyrus-imapd version 2.3.11-1) and followed the official guide on [1]. Unfortunately I forgot to preserve the permission and owner:group information while creating the backup. Now I would like to restore the server on a Fedora 11 system running cyrus-imapd version 2.3.14-1.
The steps I did so far
$ mv /var/spool/imap /var/spool/imap.old
$ mv /var/lib/imap /var/lib/imap.old
$ cp -R backup/var/spool/imap /var/spool/imap
$ chown -R cyrus:mail /var/spool/imap
$ cp -R backup/var/lib/imap /var/lib/imap
$ chown -R cyrus:mail /var/lib/imap
This is what my /var/log/maillog yells after starting the server with /etc/init.d/cyrus-imap start
------------------------------------
Jul 18 13:48:27 celsius cvt_cyrusdb[10228]: mystore: reusing txn 2147483654
[...]
Jul 18 13:48:27 celsius cvt_cyrusdb[10228]: mycommit: committing txn 2147483654
Jul 18 13:48:27 celsius master[10239]: process started
Jul 18 13:48:27 celsius master[10241]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb
Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: recovering cyrus databases
Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: skiplist: recovered /var/lib/imap/mailboxes.db (36 records, 14104 bytes) in 0 seconds
Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: skiplist: recovered /var/lib/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Jul 18 13:48:27 celsius ctl_cyrusdb[10241]: done recovering cyrus databases
Jul 18 13:48:27 celsius master[10242]: about to exec /usr/lib/cyrus-imapd/idled
Jul 18 13:48:27 celsius master[10239]: unable to create sieve listener socket: Permission denied
Jul 18 13:48:27 celsius master[10239]: ready for work
Jul 18 13:48:27 celsius master[10244]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb
Jul 18 13:48:27 celsius master[10246]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:27 celsius imap[10246]: executed
Jul 18 13:48:27 celsius master[10248]: about to exec /usr/lib/cyrus-imapd/lmtpd
Jul 18 13:48:27 celsius master[10249]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:27 celsius imap[10249]: executed
Jul 18 13:48:27 celsius lmtpunix[10248]: executed
Jul 18 13:48:27 celsius ctl_cyrusdb[10244]: checkpointing cyrus databases
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file: /var/lib/imap/db/log.0000000001
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file: /var/lib/imap/db/log.0000000001
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file: /var/lib/imap/db/log.0000000001
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving database file: /var/lib/imap/annotations.db
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving database file: /var/lib/imap/mailboxes.db
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: archiving log file: /var/lib/imap/db/log.0000000001
Jul 18 13:48:28 celsius ctl_cyrusdb[10244]: done checkpointing cyrus databases
Jul 18 13:48:28 celsius master[10239]: process 10244 exited, status 0
Jul 18 13:48:28 celsius master[10250]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:28 celsius master[10251]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:28 celsius imap[10250]: executed
Jul 18 13:48:28 celsius imap[10251]: executed
Jul 18 13:48:30 celsius master[10255]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10255]: executed
Jul 18 13:48:30 celsius master[10256]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius master[10257]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10257]: executed
Jul 18 13:48:30 celsius imap[10256]: executed
Jul 18 13:48:30 celsius master[10258]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius master[10259]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10258]: executed
Jul 18 13:48:30 celsius imap[10259]: executed
Jul 18 13:48:30 celsius master[10260]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10260]: executed
Jul 18 13:48:30 celsius master[10255]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10255]: executed
Jul 18 13:48:30 celsius master[10256]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius master[10257]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10257]: executed
Jul 18 13:48:30 celsius imap[10256]: executed
Jul 18 13:48:30 celsius master[10258]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius master[10259]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10258]: executed
Jul 18 13:48:30 celsius imap[10259]: executed
Jul 18 13:48:30 celsius master[10260]: about to exec /usr/lib/cyrus-imapd/imapd
Jul 18 13:48:30 celsius imap[10260]: executed
------------------------------------
And then later on when trying to access my mailbox using Evolution
------------------------------------
[...]
Jul 18 13:49:03 celsius imap[10249]: IOERROR: opening /var/spool/imap/s/user/sp4rc/archive/cyrus.header: Permission denied
[...]
------------------------------------
I can see the messages within Evolution including date and subject line, but when clicking on a mail item I receive:
------------------------------------
Unable to retrieve message
IMAP command failed: Please select a mailbox first
------------------------------------
So I am little stuck here and would really be happy if someone could give me a helping hand on this...
Regards,
Matthias
[1] http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/Backup
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
More information about the Info-cyrus
mailing list