seasnake
v1.0.4
Published
Docker volume imports and exports
Downloads
22
Maintainers
Readme
seasnake
installation
$ npm install --save seasnake
usage
exporting
import Seasnake from 'seasnake';
const seasnake = new Seasnake('dockercomposeprefix_volumename');
seasnake.export('backup-file.tar');
importing
import Seasnake from 'seasnake';
const seasnake = new Seasnake('dockercomposeprefix_volumename');
seasnake.import('backup-file.tar');
Note: the backup file is relative to the working directory but cannot be in a parent directory (eg. ../backup-file.tar)