Koozali.org: home of the SME Server

Where are the email messages located on the server

knuchel

Where are the email messages located on the server
« on: May 20, 2004, 06:56:32 AM »
I had to do a complete reinstall of sme server after it crashed and I had been using backup2ws to backup each night to a workstation using the rsync option for the backup.

Now I have a problem in that I can't seem to get email going again.

I did a fresh install then rsynced the following back to the server:

/home/e-smith
/home/netlogon
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/group
/etc/gshadow
/etc/passwd
/etc/shadow
/etc/smbpasswd
/etc/ssh
/opt

I am using SME Server 5.6 with update 4.
When I try to access email using Microsoft Outlook Express on the client machines I get an error saying "Can't initialize .uidvalidity file".

If I try to access through webmail, I have a series of empty folders.

The users were using IMAP for their email.

Any ideas how I can fix this one?

Offline raem

  • *
  • 3,972
  • +4/-0
Where are the email messages located on the server
« Reply #1 on: May 20, 2004, 08:49:55 AM »
When you create the backup job in backup2ws it clearly says

"Rsync performs a file by file transfer to the remote Windows share. The files are easily viewable on the Windows workstation. However, rsync looses all ownership/rights attributes and does not handle linked files."

I would suggest that the restored files do not have correct permissions now. Fix that up and it will probably be OK then.
...

lajgaard

Where are the email messages located on the server
« Reply #2 on: May 20, 2004, 10:12:51 AM »
So you are saying the rsyng as a way of backing up your server to a windows workstation is a bad idea?

Carsten

Offline raem

  • *
  • 3,972
  • +4/-0
Where are the email messages located on the server
« Reply #3 on: May 20, 2004, 12:15:34 PM »
All I'm saying is that according to the backup2ws contrib, permissions are not retained, therefore if you use rsync then you will need to recreate the correct permissions if you do a restore.

Rar & rsync each have their pros & cons.
The choice of method is yours.
...

tape

Where are the email messages located on the server
« Reply #4 on: May 20, 2004, 12:45:07 PM »
Quote from: "RayMitchell"
All I'm saying is that according to the backup2ws contrib, permissions are not retained, therefore if you use rsync then you will need to recreate the correct permissions if you do a restore.

Rar & rsync each have their pros & cons.
The choice of method is yours.


doesn´t "rsync -a" preserve UID/GID as well as symlinks and file perms?

I don´t know the backup2wq contrib, but rsync itself should do the job.

hth
Anton