Phdcci zimbra backup process: Difference between revisions
Appearance
Zimbra Backup Process of PHDCCI |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[category:PHDCCI]] | |||
''' | ''' | ||
== Zimbra Backup Process == | == Zimbra Backup Process == | ||
| Line 18: | Line 21: | ||
''# rsync -alHKP /opt/zimbra /media/drive/backup_091213(Folder Name)/'' | ''# rsync -alHKP /opt/zimbra /media/drive/backup_091213(Folder Name)/'' | ||
| Line 33: | Line 36: | ||
''# su – zimbra'' | ''# su – zimbra'' | ||
| Line 45: | Line 48: | ||
''$ zmcontrol stop'' | ''$ zmcontrol stop'' | ||
| Line 57: | Line 60: | ||
''$ exit'' | ''$ exit'' | ||
| Line 69: | Line 72: | ||
''# pkill -9 zimbra'' | ''# pkill -9 zimbra'' | ||
| Line 84: | Line 87: | ||
''# rsync -alHKP --delete /opt/zimbra /media/drive/backup_091213/'' | ''# rsync -alHKP --delete /opt/zimbra /media/drive/backup_091213/'' | ||
| Line 99: | Line 102: | ||
''# su – zimbra'' | ''# su – zimbra'' | ||
''$ zmcontrol start'' | |||
''$ zmcontrol status'' | |||
''$ zmcontrol start'' | |||
''$ zmcontrol status'' | |||
| Line 116: | Line 115: | ||
---- | ---- | ||
''$ exit'' | ''$ exit'' | ||
---- | ---- | ||
Latest revision as of 10:47, 9 November 2013
Zimbra Backup Process[edit]
Login on the server from root user:
First we rsync the data without stoppping the zimbra to the external hard disk
External Hard drive is mounted at /media/drive/
# rsync -alHKP /opt/zimbra /media/drive/backup_091213(Folder Name)/
this will transfer zimbra to the external drive in the folder (backup_091213)
After the transfer gets completed, stop zimbra
# su – zimbra
This will switch you to zimbra user, now run this command
$ zmcontrol stop
This will stop zimbra
$ exit
this will switch back to root user
# pkill -9 zimbra
This will kill all the process related to zimbra incase if it is still running.
Now we take the final rsync
# rsync -alHKP --delete /opt/zimbra /media/drive/backup_091213/
It should get completed without giving any errors.
Now we start zimbra
# su – zimbra $ zmcontrol start $ zmcontrol status
check the status of zimbra by running this command, everything should be running.
$ exit