Add ability to Plesk Migrator to delete files on the target server which do not exist on the source server
Add feature for the Plesk Migrator to remove the content from the target server which does not exist already on the source server.
It would be nice to be able to not only add but also remove files using Re-Sync in Plesk Migrator. So that Plesk Migrator will remove the content from the target server which does not exist already on the source server.
-
Ian Kennedy commented
It has definite benefits for migration of mail data. I would expect every migration to be performed at least twice, otherwise you've no opportunity to test the installation worked.
-
hkendusers commented
I use Plesk Migrator to migrate domain from A server to B server, since the data is huge, I need to re-sync for several times in order to reduce data difference during migration.
However I found that Migrator uses rsync without --delete option, during the migration the end user may delete some emails which already sync to destination server in the very beginning. After I finished the migration, user found the deleted emails appear again.
This problem also applies to website - If website removes cache or file (maybe by CMS or FTP), those files will appear again on destination server.
Can Plesk simply add --delete option to the rsync in order to fix the email/website data asynchronous problem?
For MySQL, if the table already exists on destination server, Plesk Migrator will remove it and migrate the whole table, there is no problem with this result. However if the table does not exist on source server, Plesk Migrator won't remove it on destination server. This situation won't happen in most circumstance, however I think Plesk Migrator should remove all tables and migrate again, so that the MySQL data is 100% accurate after migration.
Reference: https://talk.plesk.com/threads/plesk-migrator-does-not-delete-non-exist-file.367949/
-
Michael commented
Agreed
-
Danir Toma commented
Considering this should just be an added --delete flag for the rsync command, this shouldn't take so long.