TYPE-0
FILEMANAGER
UP LEVEL
HOME
EXIT
Current Directory:
scripts2
/
EDIT: imapsync_full.sh
#!/bin/bash SRC=$1 > mailbox_ok.txt > mailbox_error.txt { while IFS=';' read h1 u1 p1 h2 u2 p2 do if imapsync --host1 "$h1" --user1 "$u1" --password1 "$p1" \ --host2 "$h2" --user2 "$u2" --password2 "$p2" then echo "$u1: migration was successful." | tee -a mailbox_ok.txt else echo "$u1: migration finished with an error -> $?." | tee -a mailbox_error.txt fi done echo "$HOST1: migration finished. Logs in mailbox_ok.txt, mailbox_error.txt, LOG_imapsync/." } < "$SRC"
SAVE CHANGES
BACK TO DIR
TYPE-0 MANAGER © 2026 |
System Ready