cout << " " << _("Restore:") << '\n'
<< "\t" << _("snbk restore [numbers]") << '\n'
<< '\n'
- << "\t" << _("Notice: Restart the `snapperd` service to make the restored "
+ << "\t" << _("Notice:") << '\n'
+ << "\t" << _("- A backup-config must be specified to run this command.")
+ << '\n'
+ << "\t" << _("- Restart the `snapperd` service to make the restored "
"snapshots visible immediately.") << '\n'
<< '\n';
}
nums.push_back(stoi(arg));
}
+ if (backup_configs.size() != 1)
+ {
+ SN_THROW(OptionsException(_("A backup-config must be specified to run this "
+ "command.")));
+ }
+
unsigned int errors = 0;
for (const BackupConfig& backup_config : backup_configs)
<term><option>restore [<replaceable>number</replaceable>]</option></term>
<listitem>
<para>Restore all missing snapshots or the specified snapshot back to the
- source. A restart of the `snapperd` service is required to make the restored
- snapshots visible immediately.</para>
+ source. A backup config must be specified to run this command. A restart of the
+ `snapperd` service is required to make the restored snapshots visible
+ immediately.</para>
</listitem>
</varlistentry>