18 lines
1.0 KiB
Plaintext
18 lines
1.0 KiB
Plaintext
|
|
Backing up the mariadb database from Adrastea to Isonoe
|
|
-- (SSTP)
|
|
The SSTP project produces an output binary called sstp which is used for transferring files over the network.
|
|
The server mode listens for files and the client mode is the sender of files.
|
|
sstp SERVERMODE {port} | CLIENTMODE {serveripaddress} {serverport} {pathfileName}.
|
|
SERVERMODE will listen on the specified port for a connection and receive the specified file.
|
|
CLIENTMODE willl connect to the specified address and port and send the specfied file.
|
|
|
|
1) From Isonoe /mnt/mariadb delete the backupdb.sql and backupdb.tar.gz files.
|
|
2) From Isonoe in /mnt/mariadb run /home/pi/CPP/listener/build/sstp SERVERMODE 55000
|
|
3) From Adrastea in /home/pi/Boneyard/Import run the ./dump.sh this will produce the backupdb.tar.gz
|
|
4) From Adrastea run /home/pi/Boneyard/Listener/sstp CLIENTMODE 10.0.0.34 55000 /home/pi/Boneyard/Import/backupdb.tar.gz
|
|
5) This will send the .gz file over to Isonoe and place it into the /mnt/mariadb folder
|
|
6) From Isonoe in /mnt/mariadb run restoredbzip.sh
|
|
|
|
|