Copying a machine using rsync

I am trying to copy a machine to another hosting (however, both on AWS). I have an AWS Lightsail x86 machine with Bitnami WordPress Multisite and have created a new Debian 11 (the same version of Debian as my Bitnami) on EC2. Then after installing and configuring rsync and configuring SSH public/private keys I run from Lightsail the following command to copy it:

sudo ./stack/ stop
sudo rsync -avzcr --mkpath -lHpEAXog --specials -tU --open-noatime --super -Sx --delete --force -z --progress / root@NEW-HOST-IP:/

I will report whether this operation succeeds.


After a forceful reboot of the new instance, its “Status check” in AWS panel is stuck “Initializing”. Connecting to the new instance does not succeed.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.