@ps-aux/nodebup 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,12 +62,12 @@ class ResticClient {
62
62
  _defineProperty(this, "forget", () => {
63
63
  this.log.debug(`Pruning repo=${this.url}`);
64
64
  const cfg = {
65
- hourly: 12,
65
+ hourly: 6,
66
66
  daily: 7,
67
67
  weekly: 8,
68
- monthly: 24
68
+ monthly: 12
69
69
  };
70
- this.shell.exec(`restic forget --prune ` + `--tag '' ` + // Ignore the tagged snapshots
70
+ this.shell.exec(`restic forget --prune ` + `--group-by tags ` + // The paths are often different when using tmp dirs
71
71
  `--keep-hourly ${cfg.hourly} --keep-daily ${cfg.daily} ` + `--keep-weekly ${cfg.weekly} --keep-monthly ${cfg.monthly}`, {
72
72
  env: this.env()
73
73
  });
@@ -36,11 +36,12 @@ let ResticController = (_dec = (0, _inversify.injectable)(), _dec2 = function (t
36
36
  _defineProperty(this, "client", () => {
37
37
  const props = this.storageConfigProvider.provide();
38
38
  if (props.type !== _types.StorageType.Restic) throw new Error('Storage is not Restic storage');
39
- this.log.info('Initializing repo', props.repo);
40
39
  return this.restFact.createClient(props);
41
40
  });
42
41
 
43
42
  _defineProperty(this, "initRepo", () => {
43
+ const props = this.storageConfigProvider.provide();
44
+ this.log.info(`Initializing Restic repo ${props.repo}`);
44
45
  this.client().prepareRepo();
45
46
  });
46
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ps-aux/nodebup",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "",
5
5
  "module": "lib/index.js",
6
6
  "main": "lib/index.js",