[GH-ISSUE #18] Process to restore the zimbra backup #11

Closed
opened 2026-02-27 08:13:50 +03:00 by kerem · 11 comments
Owner

Originally created by @samrocks1011 on GitHub (Mar 21, 2017).
Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/18

Originally assigned to: @lucascbeyeler on GitHub.

Dear Sir,

I have successfull taken eh full backup of zimbra using zmbackup -f command.
The new zimbra machine is ready and trying to restore the backup using zmbackup -r. But the error comes "Error! Incorrect options" Please let me know the option that i need to include to restore the full backup.

Originally created by @samrocks1011 on GitHub (Mar 21, 2017). Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/18 Originally assigned to: @lucascbeyeler on GitHub. Dear Sir, I have successfull taken eh full backup of zimbra using zmbackup -f command. The new zimbra machine is ready and trying to restore the backup using zmbackup -r. But the error comes **"Error! Incorrect options"** Please let me know the option that i need to include to restore the full backup.
kerem 2026-02-27 08:13:50 +03:00
Author
Owner

@lucascbeyeler commented on GitHub (Mar 21, 2017):

Dear @samrocks1011

To do a restore you need to inform what kind of restore do you want. If it is a mailbox restore, use -m, or if you trying to restore a ldap account use -ldp. For example:

zmbackup -r -ldp <session> <account>

zmbackup -r -m <session> <account>

zmbackup does not restore yet the ldap and the mailbox at the same time.

Regards,
Lucas Costa Beyeler

<!-- gh-comment-id:288041075 --> @lucascbeyeler commented on GitHub (Mar 21, 2017): Dear @samrocks1011 To do a restore you need to inform what kind of restore do you want. If it is a mailbox restore, use -m, or if you trying to restore a ldap account use -ldp. For example: `zmbackup -r -ldp <session> <account>` `zmbackup -r -m <session> <account>` zmbackup does not restore yet the ldap and the mailbox at the same time. Regards, Lucas Costa Beyeler
Author
Owner

@lucascbeyeler commented on GitHub (Mar 21, 2017):

Dear @samrocks1011

As you didn't return if this answer your question, I'm closing this issue. Feel free to re-open if needed.

Regards,
Lucas Costa Beyeler

<!-- gh-comment-id:288255668 --> @lucascbeyeler commented on GitHub (Mar 21, 2017): Dear @samrocks1011 As you didn't return if this answer your question, I'm closing this issue. Feel free to re-open if needed. Regards, Lucas Costa Beyeler
Author
Owner

@samrocks1011 commented on GitHub (Mar 22, 2017):

Dear @lucascbeyeler
Sorry for the late reply. I executed the following command "zmbackup -r -ldp full-20170318123250 sandeep@sjcet.co.in" . I received a output saying "No backup found. Impossible to restore".
Backup Directory in zmconfig.conf file:- /backup
Owner of the /backup is zimbra.
full backup session in sessions.txt file :- full-20170318123250

Is something I am doing wrong. Please help me.

<!-- gh-comment-id:288295423 --> @samrocks1011 commented on GitHub (Mar 22, 2017): Dear @lucascbeyeler Sorry for the late reply. I executed the following command **"zmbackup -r -ldp full-20170318123250 sandeep@sjcet.co.in"** . I received a output saying **"No backup found. Impossible to restore"**. Backup Directory in zmconfig.conf file:- /backup Owner of the /backup is zimbra. full backup session in sessions.txt file :- full-20170318123250 Is something I am doing wrong. Please help me.
Author
Owner

@lucascbeyeler commented on GitHub (Mar 22, 2017):

Dear @samrocks1011

Which version are you using?

To get the version, please run "zmbackup -v" and post here. It's actually just this. If the sessions.txt aren't excluded, the restore should be working.

Regards,
Lucas Costa Beyeler

<!-- gh-comment-id:288389282 --> @lucascbeyeler commented on GitHub (Mar 22, 2017): Dear @samrocks1011 Which version are you using? To get the version, please run "zmbackup -v" and post here. It's actually just this. If the sessions.txt aren't excluded, the restore should be working. Regards, Lucas Costa Beyeler
Author
Owner

@lucascbeyeler commented on GitHub (Mar 22, 2017):

Dear @samrocks1011

I made a new update in zmbackup because I could simulate your error even in the most recent release. Please, update your version and try again to see if the bug persist.

Thanks for your support.

<!-- gh-comment-id:288399254 --> @lucascbeyeler commented on GitHub (Mar 22, 2017): Dear @samrocks1011 I made a new update in zmbackup because I could simulate your error even in the most recent release. Please, update your version and try again to see if the bug persist. Thanks for your support.
Author
Owner

@samrocks1011 commented on GitHub (Mar 23, 2017):

zmbackup version: 1.0.1

<!-- gh-comment-id:288607364 --> @samrocks1011 commented on GitHub (Mar 23, 2017): zmbackup version: 1.0.1
Author
Owner

@lucascbeyeler commented on GitHub (Mar 23, 2017):

@samrocks1011

First: Did you try the new release? I launched yesterday the version 1.0.2.

Second: Can you tell me if the backup for this account was done correctly? Can you tell me if the file is not empty?

Regards,
Lucas Costa Beyeler

<!-- gh-comment-id:288715276 --> @lucascbeyeler commented on GitHub (Mar 23, 2017): @samrocks1011 First: Did you try the new release? I launched yesterday the version 1.0.2. Second: Can you tell me if the backup for this account was done correctly? Can you tell me if the file is not empty? Regards, Lucas Costa Beyeler
Author
Owner

@samrocks1011 commented on GitHub (Mar 24, 2017):

@lucascbeyeler

I haven't tried with the new version 1.0.2. I will be testing the new version today and will provide the status.

<!-- gh-comment-id:288956707 --> @samrocks1011 commented on GitHub (Mar 24, 2017): @lucascbeyeler I haven't tried with the new version 1.0.2. I will be testing the new version today and will provide the status.
Author
Owner

@samrocks1011 commented on GitHub (Mar 24, 2017):

@lucascbeyeler
It was successful restore. I was trying to restore the data to fresh zimbra on new server. The new server was not having domain. When i created one domain and run the restore process I was able to successful restore the User and mailbox.
Thanks for the support.

<!-- gh-comment-id:288999179 --> @samrocks1011 commented on GitHub (Mar 24, 2017): @lucascbeyeler It was successful restore. I was trying to restore the data to fresh zimbra on new server. The new server was not having domain. When i created one domain and run the restore process I was able to successful restore the User and mailbox. Thanks for the support.
Author
Owner

@lucascbeyeler commented on GitHub (Mar 24, 2017):

@samrocks1011

Thanks for the return. If the problem return, please feel free to reopen the issue

<!-- gh-comment-id:289012834 --> @lucascbeyeler commented on GitHub (Mar 24, 2017): @samrocks1011 Thanks for the return. If the problem return, please feel free to reopen the issue
Author
Owner

@jorgemop commented on GitHub (Jun 18, 2020):

Full backup going well
Incremental backup apparently going well

I delete an account for test, later try to recover it with -r -m and full session

and i gave this:

[zimbra@asd ~]$ zmbackup -r -m full-20200617121733 scompras@domain.com.ve
Restore mail process with session full-20200617121733 started at Thu Jun 18 15:18:28 -04 2020Error during the restore process for account scompras@domain.com.ve. Error message below:scompras@domain.com.ve: usage: http [-h] [--version] [--json | --form] [--traceback]
[--pretty | --ugly] [--headers | --body] [--style STYLE]
[--auth AUTH] [--verify VERIFY] [--proxy PROXY]
[--allow-redirects] [--file PATH] [--timeout TIMEOUT]
METHOD URL [items [items ...]]
http: error: unrecognized arguments: --check-status
Restore mail process with session full-20200617121733 completed at Thu Jun 18 15:18:28 -04 2020

The file exist
[zimbra@server1$ ls -lha scompras@domain.com.ve.tgz
-rw-r----- 1 zimbra zimbra 6.0G Jun 17 17:02 scompras@domain.com.ve.tgz

what i'm doing wrong ? thanx in advance

<!-- gh-comment-id:646261257 --> @jorgemop commented on GitHub (Jun 18, 2020): Full backup going well Incremental backup apparently going well I delete an account for test, later try to recover it with -r -m and full session and i gave this: [zimbra@asd ~]$ zmbackup -r -m full-20200617121733 scompras@domain.com.ve Restore mail process with session full-20200617121733 started at Thu Jun 18 15:18:28 -04 2020Error during the restore process for account scompras@domain.com.ve. Error message below:scompras@domain.com.ve: usage: http [-h] [--version] [--json | --form] [--traceback] [--pretty | --ugly] [--headers | --body] [--style STYLE] [--auth AUTH] [--verify VERIFY] [--proxy PROXY] [--allow-redirects] [--file PATH] [--timeout TIMEOUT] METHOD URL [items [items ...]] http: error: unrecognized arguments: --check-status Restore mail process with session full-20200617121733 completed at Thu Jun 18 15:18:28 -04 2020 The file exist [zimbra@server1$ ls -lha scompras@domain.com.ve.tgz -rw-r----- 1 zimbra zimbra 6.0G Jun 17 17:02 scompras@domain.com.ve.tgz what i'm doing wrong ? thanx in advance
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zmbackup#11
No description provided.