Hi,
The problem you have may have one of the following reasons:
There is at least one file or dir somewhere under home/* dir for admin or user that does not belong to the user:user or user:apache. Thus, either backup will break or make an empty backup.
OR
The database of kloxo, mysql or cdb is not in harmony with files and dir on the harddrive.
The solution is as follows:
1) Copy somewhere, like in /root/backup/var, /root/backup/html and /root/backup/email
a) /home/user_name/* -----> backup -----> for html files
b) /lxadmin/domains/domain_name -----> backup -----> for email boxes
c) /var/mysql/name_of_db -----> backup -----> for mysql db
2) Delete the domain from kloxo under that client. Note that deleting the domain shall not delete the html files or mysql database. Emails dir will be deleted.
3) Run cleanup and bring the system up-to-date and recreate new cdb + email files:
Execute: # sh /script/cleanup
Execute: # sh /script/fix-chownchmod
4) Create the domain under the client
5) Create all email@ mail boxes with the same email@domain.com as before
Execute sh /script/fix-all
The above solution will eradicate problems of chown or chmod and domain related problems to cdb, mysql and html forcefully.
If this also does not work you need to go one step higher.
Then you need to detele the client from kloxo, including domains, emails and mysql databases under that client.
In this case, at the stage of deleting the domain, delete th client. Then all the respective files of domain, email and mysql will be gone.
Create the domain and email boxes again as mentioned above in 4) and 5).
But you do have the backup under /root/backup. Then bring those files in the system back to its original place.
Execute: # sh /script/fix-all
Only thereafter you did the maximum possible. Then backup and restore may work. Here, when restoring, click on the client as well so that it will delete the old and restore the client completely.