|
|
@ -1,15 +0,0 @@ |
|
|
|
#!/bin/bash |
|
|
|
RCODE=$? |
|
|
|
|
|
|
|
echo "Export mailboxes :" |
|
|
|
for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; |
|
|
|
do |
|
|
|
echo "Exporting mailbox $user" ;#echo "Exporting mailbox $user" ; |
|
|
|
zmmailbox -z -t 0 -m $user getRestURL --startTime $(date -d '-3 day' +%Y/%m/%d) --endTime $(date -d '+1 day' +%Y/%m/%d) -u "https://127.0.0.1:7071" "//?fmt=tgz&resolve=modify" > /opt/zimbra/nfsbackup/migration/archives/$user.tgz ; |
|
|
|
done |
|
|
|
|
|
|
|
if [ $RCODE -eq 1 ]; then |
|
|
|
echo "erreur dans l'export'" |
|
|
|
exit 1; |
|
|
|
fi |
|
|
|
|