This commit is contained in:
Your Name 2025-04-26 22:38:32 +12:00
parent 029187c0aa
commit ce4920314b

View File

@ -113,8 +113,9 @@ int restore(const std::vector<std::string> &args)
// run the restore script
std::cout << "OK, here goes..." << std::endl;
std::cout << "1) Backing up existing service... " << std::flush;
{ // backup existing service
std::cout << "1) Backing up existing service... " << std::flush;
std::vector<std::string> backup_args = {"dropshell","backup",server_name, service_name};
if (!backup(backup_args,true)) // silent=true
{
@ -123,9 +124,15 @@ int restore(const std::vector<std::string> &args)
return 1;
}
std::cout << "Backup complete." << std::endl;
}
{ // restore service from backup
std::cout << "2) Restoring service from backup..." << std::endl;
}
{ // initialise service
std::cout << "3) Initialising service..." << std::endl;
}
// run the restore script
return 0;