Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: dallas on November 29, 2024, 01:20:51 AM

Title: Restoring mail from workstation backup to new server
Post by: dallas on November 29, 2024, 01:20:51 AM
Back in June I installed 10.1 as server only and restored from a workstation backup on my 9.2 server/gateway.
Due to a lot of home & health issues I'm now ready to switch the 10.1 server to server/gateway. So I have about six months of email on the 9.2 server that's not on the 10.1 server.

Is it safe to reconfigure the 10.1 server then restore a current 9.2 backup and will this cause duplication of emails already on the new server from the initial restore?
Title: Re: Restoring mail from workstation backup to new server
Post by: ReetP on November 29, 2024, 12:07:51 PM
How to make life difficult for yourself :-)

Should have just switched directly to 10.1 !!

Assuming the only thing you really want is existing mails and no other configuration items then you should be able to copy existing mails from one server to another.

Just use rsync. See here for an example of how to do that:

https://wiki.koozali.org/Migratehelper#Restore

eg

Code: [Select]
rsync -aArv root@oldsme:/home/e-smith/files/users/ /home/e-smith/files/users
Or amend that for a specific directory.