Skip to content

Commit

Permalink
more verbose info
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Mar 11, 2024
1 parent a8d859b commit 8859fbf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import * as hex from "https://deno.land/[email protected]/encoding/hex.ts";
import * as fs from "https://deno.land/[email protected]/fs/mod.ts";
import * as path from "https://deno.land/[email protected]/path/mod.ts";
import {
ArgumentValue,
Command,
Expand Down Expand Up @@ -120,7 +121,7 @@ const cli = new Command()
Deno.exit(1);
}

if (verbose) print(resp.stderr);
if (verbose) console.log(`created repo at ${path.resolve(repo)}`);
}

const bytes = new Uint8Array(6);
Expand All @@ -140,7 +141,10 @@ const cli = new Command()
Deno.exit(1);
}

if (verbose) print(resp.stderr);
if (verbose) {
console.log("backup info");
print(resp.stderr);
}

if (prune) {
const resp = await borg(
Expand All @@ -158,7 +162,10 @@ const cli = new Command()
Deno.exit(1);
}

if (verbose) print(resp.stderr);
if (verbose) {
console.log("prune info");
print(resp.stderr);
}

// TODO: Detect borg 1.2.x and compact
}
Expand Down

0 comments on commit 8859fbf

Please sign in to comment.