Snapshots.destroy_older()

Usage

Hover over inputs/exits for more info.

var Snapshots = require('machinepack-snapshots');


Snapshots.destroy_older({

keep: '10',

recursive: true,

fs: 'V01/V01',

label: 'daily',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

keep required

number of snapshots to keep

'10'
recursive required

true
fs required

name of the filesystem

'V01/V01'
label required

name of the snapshot service label

'daily'

Exits

error

An unexpected error occurred.

success

OK.