Transfer using rsync
A method for transferring MikoPBX to another host using rsync (preferred)
Last updated
A method for transferring MikoPBX to another host using rsync (preferred)
Last updated
This article discusses transferring data to a new host using rsync
. This approach uses a generated SSH key for authentication, making it the most reliable and therefore the recommended method.
First, establish an SSH connection to your new MikoPBX. You can find instructions on how to do this in this article.
Once connected, switch to the console ([9] Console). First, you need to create a directory to store the script file. Use the following command:
Navigate to the created directory:
Create the file "transfer-rsync.sh" to store the script:
Next, you need to fill the file with the script content. You can find the script here.
Use the following command to download the script:
Make the file executable:
Run the script:
You will be prompted to enter necessary information about your old MikoPBX:
IP address of your old station
Username for SSH authentication
Port for SSH authentication
Next, you’ll be asked whether to generate a new key. If you haven’t done this before, type "y" to confirm. If you previously generated a key for accessing the second MikoPBX, type "n":
A new SSH key will be created. You must copy this key and insert it into the web interface of your old MikoPBX at General Settings → SSH → SSH Authorized keys field.
After saving the key on the old MikoPBX, wait a few seconds, then press any key to continue the script.
The transfer of all data to the new host will begin. This may take some time.
After the transfer, always verify the integrity of all data before retiring the old MikoPBX!