Skip to content

Commit

Permalink
Adding a bin
Browse files Browse the repository at this point in the history
  • Loading branch information
sentry0 committed Nov 1, 2024
1 parent 79b151a commit 4650541
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
!node_modules/
sbin/
19 changes: 11 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vmsnap",
"version": "0.2.2-alpha",
"version": "0.2.4-alpha",
"description": "A Node based backup and backup rotation tool for KVM domains.",
"scripts": {
"vmsnap": "node vmsnap.js",
Expand Down Expand Up @@ -44,5 +44,8 @@
"*.js": "prettier --check --ignore-unknown"
},
"exports": "./vmsnap.js",
"bin": {
"vmsnap": "./vmsnap.js"
},
"type": "module"
}
4 changes: 1 addition & 3 deletions vmsnap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/node
#!/usr/bin/env node
import { exec } from 'child_process';
import util from 'util';
import { tmpdir } from 'os';
Expand Down Expand Up @@ -27,8 +27,6 @@ import {
} from './libs/general.js';
import { backup } from './libs/libnbdbackup.js';

// const { YAML } = pkg;

/**
* This script is designed to backup KVM virtual machines using the
* virtnbdbackup utility. It relies on the virsh and qemu-img utilities as well
Expand Down

0 comments on commit 4650541

Please sign in to comment.