Hi all!
I had a NS8 install, on bare metal, with mail and samba.
The NS8 install was on one drive (let’s call it “first drive”) and the “mail3” and “samba5” folders, inside “home” folder, were symlinks to folders on another drive (let’s call it “second drive”).
The “first drive” died. I have no backups. But the “second drive” is OK.
I installed a new NS8 on a new “first drive”.
How can I use “mail3” and “samba5” folders I have on the “second drive” on this new install? Is it possible at all?
Sorry for my poor English…
Hi and welcome to NethServer Community!
You could install samba (and recreate users) and mail app on the new NS8 and copy/rsync the data, that is still on the “second drive”, to the new app volume locations.
As the UIDs/GIDs have changed, you need to care about the right user/group ownership of the transferred files. You could compare it with already existing files/dirs on the new NS8.
The mail folders are located in /home/mail3/.local/share/containers/storage/volumes/dovecot-data/_data/
Samba homes/shares data is located in /home/samba5/.local/share/containers/storage/volumes/homes/_data/ and /home/samba5/.local/share/containers/storage/volumes/shares/_data/
Hi mrmarkuz!
Actually, I’ve been a member for about a year, but mostly just as a reader. I tend to try to solve, and learn, everything by myself, except in situations like this.
I really can’t thank you enough for taking the time to help me. As soon as I saw that you were replying, I think it’s been a long time since I refreshed a page so many times! ![]()
I’m going to try your suggestion.
This is the same approach I used years ago on a ClearOS server. I just thought there might be a way to reuse the entire app folder.
Thank you once again.
If needed, I’ll bother you with some more questions. I hope you don’t mind…
Hi @mrmarkuz !
I believe all is going well.
Once again, thank you so very much for your help!