Browse Source

supprimé : zimbra/Migration/3_pre_export.sh

zimbra/Migration/3_exports_final.sh
	zimbra/Migration/4_imports_mailboxes.sh
master
Sébastien Faton 12 months ago
parent
commit
52dd44d709
  1. 15
      zimbra/Migration/3_pre_export.sh

15
zimbra/Migration/3_pre_export.sh

@ -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
Loading…
Cancel
Save