You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
355 B
12 lines
355 B
const bashService = require('services/bash.js');
|
|
|
|
const LND_DATA_SOURCE_DIRECTORY = '/lnd/';
|
|
const LND_BACKUP_DEST_DIRECTORY = '/lndBackup';
|
|
async function lndBackup() {
|
|
|
|
// eslint-disable-next-line max-len
|
|
await bashService.exec('rsync', ['-r', '--delete', LND_DATA_SOURCE_DIRECTORY, LND_BACKUP_DEST_DIRECTORY]);
|
|
}
|
|
module.exports = {
|
|
lndBackup,
|
|
};
|
|
|