bggo / Zmbkpose

The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts, GPL(OPENSOURCE). It can run from any host in the net, which means that it can be set on a backup server already existent.
http://wiki.zimbra.com/wiki/HOT_Backup_and_HOT_Restore
GNU General Public License v3.0
79 stars 55 forks source link

zmbkpose -f backing up all mail exept the last created account #54

Open ckruijntjens opened 10 years ago

ckruijntjens commented 10 years ago

Hi all,

I use zmbkpose -f and it backups all accounts except for the last created account. I deleted the last account but then when i perform again a full backup it lacks again to backup the account created before the last created account. I get an error at the end of the script.

curl: (6) Could not resolve host: ; Name or service not known

Can someone help me please??

Tanx in advance

liandros commented 10 years ago

apologies for the delay in response. There is a fixed in "Issue #52" Please can you re-download y try : http://github.com/bggo/Zmbkpose/archive/rewrite_proposal_v2.0.zip

ckruijntjens commented 10 years ago

hi great,

it is working now. But my next question is. before when i wanted to restore a account to another account i user zmbkpose --restoreOnAccount. Now it is not recognizing this command.

How can i do this with the new zmbkpose???

chris kruijntjens.

liandros commented 10 years ago

In zmbkpose rewrite_proposal, there are different option arguments. try "zmbkpose -h" por help. for restore, you can use -r or -R

ckruijntjens commented 9 years ago

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@domain.com temp1@domain.com

chris kruijntjens.

arekstuka commented 9 years ago

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857.

ckruijntjens commented 9 years ago

Hi arek,

I know and i read it. But i van not seem to find the right command to do this??

Chris kruijntjens

Op 7 nov. 2014 om 16:33 heeft Arek notifications@github.com het volgende geschreven:

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857.

— Reply to this email directly or view it on GitHub.

arekstuka commented 9 years ago

You want to restore one account rigth? Example arek@domain.com ??? Your script are revrite proposal 2? 7 lis 2014 21:18 "ckruijntjens" notifications@github.com napisał(a):

Hi arek,

I know and i read it. But i van not seem to find the right command to do this??

Chris kruijntjens

Op 7 nov. 2014 om 16:33 heeft Arek notifications@github.com het volgende geschreven:

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62205618.

ckruijntjens commented 9 years ago

Hi this is correct but i want to restore as example account1@domain.com to account2@domain.com?

Verstuurd vanaf mijn iPhone

Op 7 nov. 2014 om 21:20 heeft Arek notifications@github.com het volgende geschreven:

You want to restore one account rigth? Example arek@domain.com ??? Your script are revrite proposal 2? 7 lis 2014 21:18 "ckruijntjens" notifications@github.com napisał(a):

Hi arek,

I know and i read it. But i van not seem to find the right command to do this??

Chris kruijntjens

Op 7 nov. 2014 om 16:33 heeft Arek notifications@github.com het volgende geschreven:

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62205618.

— Reply to this email directly or view it on GitHub.

arekstuka commented 9 years ago

I never try like this : restore one account to other one. below you can find small instruction . How to restore account. When its compl. Please use rsync to move one mailbox to other one. I did it couple of times rsync also to import all mails from admin@domain.com to my zimbra server account example admin@admin1.com

Suppose that you have the follows FULL/INCREMENTAL account backups : Monday : Backup FULL Tuesday : Backup INC Wednesday: Backup FULL Thursday : Backup INC Friday : Backup INC

If you restore using $ zmbkpose -r -a admin@admin.com then you are restauring from last full backup, and subsequent incrementals: backups from wednesday, thursday and friday.

If It's saturday and restore using $ zmbkpose -R 2d -a admin@admin.com then you are restauring from last full backup, and subsequent incrementals upto reach now - 2 days (saturday - 2 day) : backups from wednesday and thursday

If It's saturday and restore using $ zmbkpose -R 4d -a admin@admin.com then you are restauring from last full backup(previous to now - 4 days), and subsequent incrementals upto reach now - 4 days (saturday - 4 day) : backups from monday and tuesday 7 lis 2014 21:22 "ckruijntjens" notifications@github.com napisał(a):

Hi this is correct but i want to restore as example account1@domain.com to account2@domain.com?

Verstuurd vanaf mijn iPhone

Op 7 nov. 2014 om 21:20 heeft Arek notifications@github.com het volgende geschreven:

You want to restore one account rigth? Example arek@domain.com ??? Your script are revrite proposal 2? 7 lis 2014 21:18 "ckruijntjens" notifications@github.com napisał(a):

Hi arek,

I know and i read it. But i van not seem to find the right command to do this??

Chris kruijntjens

Op 7 nov. 2014 om 16:33 heeft Arek notifications@github.com het volgende geschreven:

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62205618.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62206135.

ckruijntjens commented 9 years ago

Hi,

Thanx for your feedback. I Will try this. Tommorow.

Chris kruijntjens

Verstuurd vanaf mijn iPhone

Op 7 nov. 2014 om 21:36 heeft Arek notifications@github.com het volgende geschreven:

I never try like this : restore one account to other one. below you can find small instruction . How to restore account. When its compl. Please use rsync to move one mailbox to other one. I did it couple of times rsync also to import all mails from admin@domain.com to my zimbra server account example admin@admin1.com

Suppose that you have the follows FULL/INCREMENTAL account backups : Monday : Backup FULL Tuesday : Backup INC Wednesday: Backup FULL Thursday : Backup INC Friday : Backup INC

If you restore using $ zmbkpose -r -a admin@admin.com then you are restauring from last full backup, and subsequent incrementals: backups from wednesday, thursday and friday.

If It's saturday and restore using $ zmbkpose -R 2d -a admin@admin.com then you are restauring from last full backup, and subsequent incrementals upto reach now - 2 days (saturday - 2 day) : backups from wednesday and thursday

If It's saturday and restore using $ zmbkpose -R 4d -a admin@admin.com then you are restauring from last full backup(previous to now - 4 days), and subsequent incrementals upto reach now - 4 days (saturday - 4 day) : backups from monday and tuesday 7 lis 2014 21:22 "ckruijntjens" notifications@github.com napisał(a):

Hi this is correct but i want to restore as example account1@domain.com to account2@domain.com?

Verstuurd vanaf mijn iPhone

Op 7 nov. 2014 om 21:20 heeft Arek notifications@github.com het volgende geschreven:

You want to restore one account rigth? Example arek@domain.com ??? Your script are revrite proposal 2? 7 lis 2014 21:18 "ckruijntjens" notifications@github.com napisał(a):

Hi arek,

I know and i read it. But i van not seem to find the right command to do this??

Chris kruijntjens

Op 7 nov. 2014 om 16:33 heeft Arek notifications@github.com het volgende geschreven:

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62205618.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62206135.

— Reply to this email directly or view it on GitHub.

arekstuka commented 9 years ago

No problem. Let me know ih you have any problems :) 7 lis 2014 21:41 "ckruijntjens" notifications@github.com napisał(a):

Hi,

Thanx for your feedback. I Will try this. Tommorow.

Chris kruijntjens

Verstuurd vanaf mijn iPhone

Op 7 nov. 2014 om 21:36 heeft Arek notifications@github.com het volgende geschreven:

I never try like this : restore one account to other one. below you can find small instruction . How to restore account. When its compl. Please use rsync to move one mailbox to other one. I did it couple of times rsync also to import all mails from admin@domain.com to my zimbra server account example admin@admin1.com

Suppose that you have the follows FULL/INCREMENTAL account backups : Monday : Backup FULL Tuesday : Backup INC Wednesday: Backup FULL Thursday : Backup INC Friday : Backup INC

If you restore using $ zmbkpose -r -a admin@admin.com then you are restauring from last full backup, and subsequent incrementals: backups from wednesday, thursday and friday.

If It's saturday and restore using $ zmbkpose -R 2d -a admin@admin.com then you are restauring from last full backup, and subsequent incrementals upto reach now - 2 days (saturday - 2 day) : backups from wednesday and thursday

If It's saturday and restore using $ zmbkpose -R 4d -a admin@admin.com then you are restauring from last full backup(previous to now - 4 days), and subsequent incrementals upto reach now - 4 days (saturday - 4 day) : backups from monday and tuesday 7 lis 2014 21:22 "ckruijntjens" notifications@github.com napisał(a):

Hi this is correct but i want to restore as example account1@domain.com to account2@domain.com?

Verstuurd vanaf mijn iPhone

Op 7 nov. 2014 om 21:20 heeft Arek notifications@github.com het volgende geschreven:

You want to restore one account rigth? Example arek@domain.com ??? Your script are revrite proposal 2? 7 lis 2014 21:18 "ckruijntjens" notifications@github.com napisał(a):

Hi arek,

I know and i read it. But i van not seem to find the right command to do this??

Chris kruijntjens

Op 7 nov. 2014 om 16:33 heeft Arek notifications@github.com het volgende geschreven:

Please heck readme file inside zip package. Inside you can find small instruction. 7 lis 2014 14:58 "ckruijntjens" notifications@github.com napisał(a):

hi there,

I know how i should restore a account, But in the previous version whe could restore a backed up account to another account name. How can we perform This action now?

So when i wanted to restore an acount i could use the following prefix.

zmbkpose --RestoreOnaccount temp@ckruijntjens.nl temp1@ckruijntjens.nl

chris kruijntjens.

— Reply to this email directly or view it on GitHub < https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62147857>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62205618.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62206135.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bggo/Zmbkpose/issues/54#issuecomment-62208506.

kondaiahn commented 7 years ago

Hi, I have downloaded and installed zmbkpose script on zimbra opensource 8.6. I could able to take backup. After taking full backup, i have deleted some of the mails from my inbox and tried to restore using zmbkpose -r -a abc@domain.com.

But it is not restoring any deleted mails.
Kindly help in restoring from the backup.

Thanks in advance.