.
This commit is contained in:
parent
029187c0aa
commit
ce4920314b
@ -113,19 +113,26 @@ 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;
|
||||
|
||||
std::vector<std::string> backup_args = {"dropshell","backup",server_name, service_name};
|
||||
if (!backup(backup_args,true)) // silent=true
|
||||
{
|
||||
std::cerr << std::endl;
|
||||
std::cerr << "Error: Backup failed, restore aborted." << std::endl;
|
||||
return 1;
|
||||
{ // 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
|
||||
{
|
||||
std::cerr << std::endl;
|
||||
std::cerr << "Error: Backup failed, restore aborted." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
std::cout << "Backup complete." << std::endl;
|
||||
}
|
||||
std::cout << "Backup complete." << std::endl;
|
||||
|
||||
std::cout << "2) Restoring service from backup..." << 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user