Cleaning Up The Staging Site Import Via Hyper CMD
Once the old site has been restored via UpdraftPlus, you will need to do some cleaning up on the CMD. While the plugin offers a cleanup feature it does not clean up everything efficiently. Here's how to do a proper clean: (NOTE: If the changes are small and will be carried over to the new site, and not migrated into the existing site you can skip this step) . Boot up the Hyper CMD software and input the following commands:
ssh [email protected] (Secure Shell Login to the staging server domain)
Su serverpilot (super user login as the serverpilot user)
Cd (change directory to index / home)
Cd apps/<serverdomainfolder>/public/wp-content/ (change directory to wp-content of WordPress installation)
Ls -ahl (check for any files / folders with "-old" in the name)
Rm -rf *-old (force remove anything with "-old" at the end)
Cd updraft (change directory to updraft folder)
Rm -rf *-old (force remove anything with "-old" at the end)