Linux iTOps Tube

Friday, 29 June 2012

rsync backup error incremental incomplete

Hi everyone, I have just followed the next processes to do the backup of my ZCS open source with rsync but when I restore the backup, It is incomplete.



1) I have the next accounts in my zimbra installation



u1@example.com

u2@example.com

u3@example.com



2) I stop my zimbra service



zmcontrol stop



3) I do the full backup with rsync in the local server



rsync -avHK --delete /opt/zimbra /dirx/zimbra.back/



4) I start zimbra



zmcontrol start



5) I create a new account



zmprov ca u4@example.com hello123

zmprov ca u5@example.com hello123



6) I stop Zimbra service



zmcontrol stop



7) I do an incremental backup with rsync



rsync -avHK --delete /opt/zimbra /dirx/zimbra.back/ ( this backup is faster more than the first backupp because this is incremental )



8) Now a I want to test my backup and delete the /opt/zimbra directory



rm -rf /opt/zimbra



9) I restore my backup



rsync -avHK /dirx/zimbra.back/zimbra /opt/



10) I restore permissions



chown -R zimbra.zimbra /opt/zimbra

/opt/zimbra/libexec/zmfixperm



11) I start the zimbra service



zmcontrol start



12) I want to see my accounts to check if my last accounts created still are



zmprov -l gaa



But: In this point only the next accounts are showed

u1@example.com

u2@example.com

u3@example.com



There are not the u4 and u5 accounts previously created.



Somebody can help me with this problem, thanks.




No comments:

Post a Comment