You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
On the existing machine
sudo systemctl stop dualshield
sudo systemctl stop dualsql
- Create a working directory
- Enter the working directory
- Compress the whole installation folder
sudo tar -C /opt -czf dualshield.tar.gz dualshield
cp /usr/lib/systemd/system/dualshield.service .
cp /usr/lib/systemd/system/dualsql.service .
- Copy all files to the new machine
scp -r /path/to/dualshield-files someuser@remote.server:/somepath/
On the new machine
- Enter the working directory
- Extract dualshield folder
sudo tar -xzvf dualshield.tar.gz -C /opt/
sudo cp dualshield.service /usr/lib/systemd/system/
sudo cp dualsql.service /usr/lib/systemd/system/
sudo useradd -g dualshield -s /sbin/nologin dualshield
- Change dualshield directory owner
sudo chown -R dualshield:dualshield /opt/dualshield
sudo echo "127.0.0.1 dualshield.fqdn.com" >> /etc/hosts
sudo echo "127.0.0.1 $(hostname)" >> /etc/hosts
sudo systemctl enable dualshield.service
sudo systemctl enable dualsql.service
sudo systemctl start dualsql
sudo systemctl start dualshield