k_graham
Well where to begin !!
Your issues are because you have done selective backups, and now you want to do a full restore, and you do not fully understand what you are doing.
You seriously should reappraise your attitude to doing FULL backups using the built in dar method, it works well and is reliable.
You can configure it for one full & then daily incremental backups to keep backup times and stored data to a minimum.
If you MUST have WinRAR backups then do these seperately for users to selectively restore files from.
1. Reinstall new using 7.5 CD Install Dar2
To be sure, I assume you mean the DAR2 contrib.
From
http://wiki.contribs.org/DAR2did you read this part which details what to do to restore the DAR2 contrib configuration settings, so that a Restore will work easily & correctly.
"Manual restore of DAR2 configuration
It is possible to selectively restore the DAR2 configuration (backup job settings etc) from a full system backup. Firstly install the DAR2 contrib on a new server, which will of course have no backup jobs configured.
Then look at the backup file in the backup target location and find a file called db.zip. Extract the dar2 db file and copy it to /home/e-smith/db on the new server, to restore the previous DAR2 configuration."
I would suggest this is a more reliable way to do a full Restore using the DAR2 contrib on a newly installed SME OS.
Note the backup needs to be restored from the same location it was saved to, so if not already there, copy your DAR2 backup file(s) to the original location they were saved, as that is where DAR2 will be expecting them to be and looking for them.
The folder structure and names needs to be identical.
You would then need to restore your ibay data and so on that you have created using WinRAR backups.
You can always do a manual reconfigure
signal-event post-upgrade
signal-event reboot
Rebooted - good part is User Names, Ibay names were in server control panel so something restored - bad news is I had set IBays to Prune (have the data within each Ibay backed up using WinRar)
So it sounds like the restore did restore the system configuration and so on, but not ibays or ibay data as you had pruned that (and maybe not mysql webmail data)
It depends then what you specified as the prune path folder names, maybe the whole ibay structure is missing from the backup, BUT the SME database system configuration believes ibays are still in existence. So you have a system that is in contradiction with itself.
Look carefully at your prune statements to see what folder path has been pruned, although this will just confirm what I suspect.
So SME showed as if IBays were there but they were not and so no place to restore data to, I tried deleting an Ibay and restoring it but got a error during delete but it was no longer visible, then tried to restore and get an error saying it already exists - I then used Midnight Commander to manually add the empty Ibays (directories) and the deleted one now shows)
What you describe seems to match my conclusion of what is going on.
Creating new ibays with mc is very wrong, permissions, ownership & so on will all be wrong.
You should have deleted the ibays in SME server manager or failing that using these commands
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Deletion_of_Users_Ibays_Groupsie
signal-event ibay-delete ibayname
db accounts delete ibayname
The above will delete SME's knowledge of those ibays
Then recreate the ibays using server manager.
The ibays will then be there to manually restore the data from your WinRAR backups.
Email doesn't accept the user passwords either and yet the email should have restored. (could be that its looking for complex passwords - ours are normal and should have restored as such)
I cannot immediately explain why that might be so, perhaps you have pruned user data too ???, or maybe the mysql data has not been properly restored.
Webmail uses mysql db's.
Does your DAR2 backup include a mysql dump ? You can look in the backup file for a dump file(s) that is placed (IIRC) in
/home/e-smith/db/mysql
4. Figured maybe the fact the Ibays had not been added before doing the Dar2 restore might have been part of the issue so have ran the restore using Dar2 a 2nd time but this time set for 1 day earlier, may loose 1 days email - except I automatically have the email forward a copy to a Google account so have it there. Immediately after seeing the word Success I told the system to do a Reconfigure - (nothing happening with the configure but was thinking it would do it as soon as its finished the restore ?
Do not continue to use the current system, it is "corrupted".
Firstly check your backup has the mysql dump file.
If so, then re-install SME OS afresh, and install DAR2 contrib, add in the DAR2 configuration settings as described above, then delete and recreate the ibays (as per above), then manually restore the ibay data.
Will be looking at Affa after this.
I don't see that Affa will be any better if you continue to do partial backups. You will still have the same problems, complicated even further by the way Affa works (hard links & so on) and the need to install and configure it.
...hoping for some advise from those who have used DAR2 to understand where I am going wrong
Hope the above helps.
One piece of BIG advice
DO NOT RELY ON PARTIAL BACKUPS
Best you attach a big USB drive directly to the server, configure the built in e-smith-dar backup in server manager to do a workstation backup to local USB, configure for a full backup then daily incrementals for say 30days (your choice, it can be longer), and also have a second USB drive to rotate (swap) on a daily basis so that you have 2 reliable backups in the event that one should fail.
If you want RAR backups then run some seperate backups from workstations to workstations using WinRAR, users can restore individual files from those.
I have tried all the backup routines over the years and the above is what I have settled upon also.