-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup single account error #162
Comments
run this to backup only one email
|
I still get the error
|
can you show me output of
|
[root@mail ~]# cat /etc/zmbackup/zmbackup.conf ZMBACKUP CONFIGURATION FILE############################################################################### This file is used to manage the behavior of the zmbackup. Please edit withcautious this file. All the values are configured by the zmbackup_wizard, butyou can change them if you need, just avoid remove any parameter from this file.To regenerate this file, just execute zmbackup_wizard again.WARNING - There is a field called DEFAULT. This is not the default value of thefield. It's just a reminder if you forgot the original value of the field.############################################################################### BACKUPUSER - Used to store the name of the account used by Zimbra server to startand stop the service.DEFAULT: zimbraBACKUPUSER=zimbra WORKDIR - Used to store the backups and where the sessions.txt will be saved.The directory must have as owner the same value as BACKUPUSER.DEFAULT: /opt/zimbra/backupWORKDIR=/opt/zimbra/backup LDAPSERVER - This is the address where you stored Zimbra's LDAP server in yourenvironment.DEFAULT: 127.0.0.1LDAPSERVER=ldap://10.10.10.10:389 LDAPADMIN - This is where you inform the ldap admin account to backup and restoreaccounts, alias, and distribution lists entries.DEFAULT: uid=zimbra,cn=admins,cn=zimbraLDAPADMIN=uid=zimbra,cn=admins,cn=zimbra LDAPPASS - This is where you inform the ldap admin password to backup and restoreaccounts, alias, and adistribuition lists entries.LDAPPASS=pwd LOGFILE - The path where zmbackup will save his logs. Don't confuse with sessions.txt.Sessions.txt is hard coded stored in $WORKDIR.DEFAULT: /opt/zimbra/log/zmbackup.logLOGFILE=/opt/zimbra/log/zmbackup.log ENABLE_EMAIL_NOTIFY - Enable or disable mail notification during a backup routine.OPTIONS:- all: Enable all the mail notification- start: Enable only the start mail notification- finish: Enable only the finish mail notification- error: Enable only for error messages- none: Disable mail notificationDEFAULT: allENABLE_EMAIL_NOTIFY=all EMAIL_NOTIFY - After each zmbackup execution, going everything okay or not, a mailis sended to someone to inform that the process is concluded, andshow a report of each account backed up.EMAIL_NOTIFY=my@example.com EMAIL_SENDER - Inform with which e-mail account Zmbackup should use to send themessage.DEFAULT: root@domainEMAIL_SENDER= MAX_PARALLEL_PROCESS - Here you define how many process zmbackup will use to completeits tasks. If you want to keep as single thread, configurethis field with the value 1.DEFAULT: 3MAX_PARALLEL_PROCESS=3 ROTATE_TIME - Here you define how many days zmbackup must keep in their archives.This value affect full, incremental, alias and distribution list backups.DEFAULT: 30ROTATE_TIME=30 LOCK_BACKUP - Here you define if zmbackup should lock the backup session for only onefor each day for each option.DEFAULT: trueLOCK_BACKUP=true SESSION_TYPE - This option define the default place where zmbackup should store theinformation of each session. Valid values can be TXT - for session.txt- or SQLITE3 - for SQLite3 driver.DEFAULT: TXTSESSION_TYPE=SQLITE3 BACKUP_INACTIVE_ACCOUNTS - Enable this option to Zmbackup backup disabled accounts too.DEFAULT: trueBACKUP_INACTIVE_ACCOUNTS=true SSL_ENABLE - Enable SSL communication between Zmbackup and your Zimbra Server.DEFAULT: trueSSL_ENABLE=true ZMMAILBOX - Location for the zmmailbox binary.DEFAULT: /opt/zimbra/bin/zmmailbox |
could you reinstall zmbackup first uninstall it
You will get a certain of questions answer the following
|
Same here.. zimbra@postoffice:~$ zmbackup -i -a admin@coredata.app |
on line 100 the script itirates through $4//,/\n/g in variable $i to add them to file $TEMPACCOUNT. GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu) which doesn't make sense.. |
Are you trying to search and replace comma's for newlines by any chance? |
assuming you wish to replace comma's for newlines by any chance, the following should work in bash:
|
Tried your approach and worked for me too. I wonder if you could submit a PR so maintainer could update this? |
Same here.. zimbra@mail:/usr/local/lib/zmbackup/bash$ zmbackup -f -a thiago.marinho@dominio.com |
@thiagowarwick I don't think the maintainer is responding to this issue, at least I haven't seen him here. |
Thank's my friend. |
haha, I didn't know I wrote that in Portuguese ;) Prazer & boa sorte, |
this is fixed here: |
Hi.
I am got an error, when try to backup single mailbox
[zimbra@mail bash]$ zmbackup -f -m -a my@example.com
/usr/local/lib/zmbackup/bash/BackupAction.sh: строка 100: my@example.com//,/\n/g: No such file or directory
Nothing to do. Closing...
How can i make backup of single account or list of accounts?
The text was updated successfully, but these errors were encountered: