Backup and Restore are working.
This commit is contained in:
@ -58,10 +58,11 @@ void dropshell::autocomplete(const std::vector<std::string> &args)
|
||||
|
||||
if (args.size()==5) // we have the command and the server and the service. dropshell autocomplete command server service_name <command?>
|
||||
{
|
||||
std::string server_name = args[3];
|
||||
std::string service_name = args[4];
|
||||
if (cmd=="restore")
|
||||
{
|
||||
std::set<std::string> backups = dropshell::list_backups(service_name);
|
||||
std::set<std::string> backups = dropshell::list_backups(server_name, service_name);
|
||||
for (auto backup : backups)
|
||||
std::cout << backup << std::endl;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user