Backup and Restore are working.

This commit is contained in:
Your Name
2025-04-28 21:24:45 +12:00
parent e258726829
commit 95e705b426
3 changed files with 13 additions and 5 deletions

View File

@ -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;