1 - Execution on Plugin Node V2.0

In Plugin Node 2.0, the following four steps are carried out:

  • 1.1 Generate and Export Node Address Keystore File

  • 1.2 Configure Backup Directory and Set Permissions for Plugin Node V2.0

  • 1.3 Save Essential Files in the Backup Directory

  • 1.4 Transfer Backup Locally Using SFTP or Other Methods

1.1 Generate and Export Node Address Keystore File

The command outputs the node address keystore file to the home directory.

cd ~/pluginV2Install/ && ./pli_node_scripts.sh keys

1.2 Configure Backup Directory and Set Permissions for Plugin Node V2.0

Now, let's execute the setup script to verify that the backup directory and permissions are correctly configured.

./_plinode_setup_bkup.sh

1.3 Save Essential Files in the Backup Directory

Before upgrading to Plugin Node 2.4, it is advisable to complete a full backup in Plugin Node 2.0 using commands (1-3-1). Additionally, create a directory named originals/pluginV2 within the /plinode_backups/ directory and copy the necessary files from Plugin Node 2.0 using commands (1-3-2).

cd ~/pluginV2Install/ && ./_plinode_backup.sh -full
  • Executes the _plinode_backup.sh -full script to create a complete backup of Plugin Node 2.0

mkdir -p /plinode_backups/originals/pluginV2 &&\ 
cd ~/pluginV2/ && cp -u ~/pluginV2/apicredentials.txt config.toml secrets.toml /plinode_backups/originals/pluginV2/ && \
cd ~ && cp -u ~/plinode_$(hostname -f).vars plinode_$(hostname -f)_keys*.json /plinode_backups/originals/pluginV2/ && \
tree -a /plinode_backups/ 
  • Creates a backup directory (/plinode_backups/originals/pluginV2).

  • Copies essential configuration files (apicredentials.txt, config.toml, secrets.toml).

  • Backs up node-specific files (plinode_$(hostname -f).vars, key JSON files).

  • Verifies the backup structure using the tree command.

cp ~/plinode_$(hostname -f).vars /plinode_backups/plinode_V2.vars
cp $(ls -t ~/plinode_$(hostname -f)_keys_* | head -n 1) /plinode_backups/plinode_V2_keys.json
grep "Keystore\s*=" ~/pluginV2/secrets.toml | sed "s/.*Keystore\s*=\s*'//;s/'$//" > /plinode_backups/.env.password
tree -a /plinode_backups/
  • Copies the latest node variable and key files to /plinode_backups/.

  • Extracts the keystore password from secrets.toml and saves it securely.

  • Displays the directory structure for verification.

1.4 Transfer Backup Locally Using SFTP or Other Methods

Before upgrading, ensure all necessary files are backed up from your server to your local machine. This step is crucial for restoring Plugin Node settings after migrating to Ubuntu 24.04.

Using an SFTP Client (Turmius Example)

A convenient way to transfer files is by using an SFTP client like Turmius, which provides an intuitive GUI for seamless file transfers between your server and local machine.

Steps to Back Up Using Turmius:

  • Open Turmius and connect to your server via SFTP.

  • Navigate to the /plinode_backups/ directory on the server.

  • Select the necessary backup files and download them to a local directory (e.g., C:\Users\YourName\plinode_backups).

  • Verify that all files have been successfully downloaded before proceeding with the upgrade.

The following screenshot demonstrates the backup process using Turmius:

Last updated