SHKeeper
This commit is contained in:
@@ -9,4 +9,4 @@ const source=arg('--source'),destination=arg('--destination');
|
||||
if(!source||source.startsWith('--'))throw new Error('Explicit --source required');
|
||||
if(action!=='verify'&&(!args.includes('--consent')||!destination||destination.startsWith('--')))throw new Error('Explicit --consent and new --destination required; stop the node first');
|
||||
const result=action==='create'?await createBackup(source,destination!):action==='restore'?await restoreBackup(source,destination!):await verifyBackup(source);
|
||||
console.log(JSON.stringify(result,null,2));
|
||||
console.log(JSON.stringify(result,null,2));
|
||||
|
||||
Reference in New Issue
Block a user