Shinobi is installed at /home/Shinobi by default. Please have your new machine have the Operating System installed and ready for installing Shinobi. Do not install Shinobi on it until backup steps are completed.
You may need to be root to do these steps.
There are two ways to do this. One may seem easier than the other depending on your experience.
Direct Copy of /var/lib/mysql
You can make a direct copy of this directory and place in the exact same place on your new machine. Then you can install Shinobi.
You can use the command line to dump the database then re-import later when you have MariaDB (MySQL) installed.
mysqldump -p ccio > /home/ShinobiDatabaseBackup.sql
The file that is created will be the contents of your database. Just import this SQL file after installing Shinobi.
Navigate to your Shinobi folder and copy the following files to a safe directory.
Once Shinobi is installed place these files in your Shinobi folder.
After installing and Stopping Shinobi you can place your videos into the filesystem. Do not start Shinobi without importing your SQL database first.
/home/Shinobi/videos is the default location. Place it in the same place in your new machine's Shinobi installation.
This can only be done once a fresh Shinobi is installed.
Navigate to the directory where your dump is located and run the following.
mysql use ccio; source /home/ShinobiDatabaseBackup.sql; exit;
Now your database is imported and you can restart Shinobi.
pm2 restart all