Update Readme

This commit is contained in:
2025-08-10 15:56:53 -04:00
parent 5ab71972cc
commit fd73e5bb94
2 changed files with 18 additions and 3 deletions

View File

@@ -1,4 +1,17 @@
-- Listener
The Listener project produces an output file called sstp which is used for transferring files over the network
Backing up the mariadb database from Adrastea to Isonoe
-- Listener (SSTP)
The Listener 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

View File

@@ -30,7 +30,9 @@ int main(int argc, char **argv)
if(argc<2)
{
std::cout << "listener SERVERMODE {port} | CLIENTMODE {serveripaddress} {serverport} SEND {FileName}" << std::endl;
std::cout << "sstp SERVERMODE {port} | CLIENTMODE {serveripaddress} {serverport} {pathfileName}." << std::endl;
std::cout << "SERVERMODE will listen on the specified port for a connection and receive the specified file." << std::endl;
std::cout << "CLIENTMODE willl connect to the specified address and port and send the specfied file." << std::endl;
return 1;
}
Block<String> arguments;