From fd73e5bb94d79471aa21d217864d255263cf6eea Mon Sep 17 00:00:00 2001 From: Sean Date: Sun, 10 Aug 2025 15:56:53 -0400 Subject: [PATCH] Update Readme --- Readme.txt | 17 +++++++++++++++-- listener/main.cpp | 4 +++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Readme.txt b/Readme.txt index 0e49693..42556a7 100644 --- a/Readme.txt +++ b/Readme.txt @@ -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 + diff --git a/listener/main.cpp b/listener/main.cpp index 350186c..76aef44 100644 --- a/listener/main.cpp +++ b/listener/main.cpp @@ -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 arguments;