Skip to navigation
script to migrate emails, websites and databases from a froxlor manged webserver
20.08.17
1. install docker 2. create a config.cfg file like user="root" database="froxlor" table="mail_users" source_password="barbar" source_host="foo.com" target_host="foo.com" target_password="barbar" 3. make the the mariadb/mysql databases accessible from remote. -create remote users and unbind the localhost settings. 4. run the below script: #!/bin/bash source config.cfg emails=$(docker run -i salamander1/mysql $database -h $source_host -u $user -p$source_password<<<"SELECT concat(username,'|', password) as email FROM $table WHERE username != '' and password != ''") for s in $emails; do IFS='|' read -a arr <<< "$s" echo "email: ${arr[0]}" echo "pass: ${arr[1]}" docker run -i salamander1/imapsync --host1 $source_host --user1 ${arr[0]} --password1 ${arr[1]} --host2 $target_host --user2 ${arr[0]} --password2 ${arr[1]} done
https://github.com/veto64/sync_froxlor
Reply
Anonymous
Information Epoch 1732663954
Design for visibility.
Home
Notebook
Contact us