You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
466 B

  1. #!/bin/bash
  2. RCODE=$?
  3. for mailbox in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`;
  4. do
  5. echo "Importing mailbox : $user" ;zmmailbox -z -t 0 -m $mailbox postRestURL -u "https://127.0.0.1:7071" "//?fmt=tgz&resolve=modify" /opt/zimbra/nfsbackup/migration/archives/$mailbox.tgz ; echo "$mailbox - done ";
  6. done
  7. if [ $RCODE -eq 1 ]; then
  8. echo "erreur dans l'import'"
  9. exit 1;
  10. fi
  11. if [ $RCODE -eq 0 ]; then
  12. echo "Import terminée'"
  13. exit;
  14. fi