How to sync a subscription between source and destination servers after Plesk migration

Follow

Comments

18 comments

  • Avatar
    poh inah

     

    Hi
    Can you say, what does mean these asterisks in the string below?

    cd C:\\Program Files (x86)\\Plesk\\var\\modules\\panel-migrator\\sessions\\*****
    C:\\Program Files (x86)\\Plesk\\var\\modules\\panel-migrator\\sessions\\*****>"%plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat" copy-content
    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    @poh inah thank you for the comment!**** - means directory name for the specific session, changed to <session_dir_name> to make the article more

    **** - means directory name for the specific migration session, changed to <session_dir_name> to make the article more informative.

    0
    Comment actions Permalink
  • Avatar
    Unknown User

    nice article

    0
    Comment actions Permalink
  • Avatar
    Baretto James

    I am currently using GS Richcopy 360 which provides real time file sync, which means you dont have to worry about the synchronization problem. Cheers, give it a shot!

    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @Baretto James,

    Hi, the article is dedicated to synchronization by Plesk means. GS Richcopy 360 was not tested for that purpose, therefore, we cannot recommend it.

    0
    Comment actions Permalink
  • Avatar
    Fran - HIS

    After the initial Migration, here is how to re-sync multiple subscriptions all at once with Plesk Migrator Version: 2.17

    As Plesk Server admin:


    Go to Plesk Extensions -> My Extensions -> Plesk Migrator -> Open
    Click on the current Migration IP address
    Click on "List Of Subscriptions" tab.
    Click on "Switch to advanced mode" tab.
    Select the subscription(s) to re-sync
    Click on the grey tab "Re-Sync"

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Fran - HIS
    Thank you, this would be really helpful for other Pleskians!

    0
    Comment actions Permalink
  • Avatar
    Rodrigo Marcos

    Hi!

    Lots of thanks for the article, It is very helpul!

    Is it possible to create a scheduled task to synchronize all the content daily in Linux from Scheduled Tasks?

    Could you explain how to do it please?

    Thank you again!

    0
    Comment actions Permalink
  • Avatar
    George Alibegashvili

    Hello Rodrigo,

    It is possible to use Plesk Scheduled Tasks.

    Create task in Tools & Settings > Scheduled Tasks > Add task with the commands from article.
    for example to sync content of all domains:
    cd /usr/local/psa/var/modules/panel-migrator/sessions/<session_dir_name>/ && /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator copy-content

    Note: migration session must be opened

    0
    Comment actions Permalink
  • Avatar
    Rodrigo Marcos

    Hello George,

    Thank you very much for your quick response.

    When I try to register the new task I receive the following message:

    "encrypted password is specified in the configuration option 'ssh-password' of section 'source'.
    encrypted passwords is not supported by CLI interface. Replace the encrypted password by plain one
    (also change the password type to "plain") or set up the plain password in the environment variable 'SOURCE_SSH_PASSWORD'. "

    Any idea about this?

    Thank you again.

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Rodrigo Marcos
    Check whether you have a /usr/local/psa/admin/sbin/modules/panel-migrator/config.ini file. If so, check if it has ssh-password specified as encrypted and change it to a plain one.

    0
    Comment actions Permalink
  • Avatar
    Rodrigo Marcos

    @Alisa Kasyanova 

    Thank you for your indications but I don't have any config.ini there

    Should I create it? what content should it have?

    Thanks again.

    Rodrigo

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Rodrigo Marcos
    Yes, add it as per the following documentation:
    https://docs.plesk.com/en-US/onyx/migration-guide/migrating-from-supported-hosting-platfoms/migrating-via-the-command-line.75722/

    0
    Comment actions Permalink
  • Avatar
    Aaron Wong

    Please note that migration-list file will exclude domains or subscriptions that are migrated. I've encountered Operation finished successfully for 0 out of 0 subscriptions when trying to schedule re-sync.  

     

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    Hi @Aaron, "re-sync" feature specifically for domains/subscriptions that are already migrated to refresh their content, so it does not skip subscriptions.

    0
    Comment actions Permalink
  • Avatar
    John Greyvenstein

    How would i re-copy all the mail from the source cpanel server? The source has 12GB and the destination has a couple of kb.

    I remove the account form the destination plesk server to try recopy everything and it just doesn't seem to copy a mailbox, no error and said everything is successful. The plan does allow for 25GB per mailbox.Any idea's?

    0
    Comment actions Permalink
  • Avatar
    Denis Bykov

    @John

    Try to Reload source data to make sure that the migrator is aware of the mail content.
    In case it won't help, I suggest contacting regular Plesk support for a closer look.

    0
    Comment actions Permalink
  • Avatar
    Joshua Moniz

    Hey, did anyone find a solution to this? 

    I have tried this and the re-sync only works through the Plesk interface. When I try the below 
     
    cd /usr/local/psa/var/modules/panel-migrator/sessions/<session_dir_name>/ && /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator copy-content
     
    or 
     
    cd /usr/local/psa/var/modules/panel-migrator/sessions/<session_dir_name>/ && /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator copy-web-content
     
    if there is a new updated file on the source server it does not copy it to the destination server, but through the Plesk UI/interface if I click on re-sync it works. Im trying to get it to work via command line or a cronjob.
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request