mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
commit
669d49eb89
@ -141,7 +141,7 @@ router.post('/new-backup', function(req, res, next) {
|
|||||||
res.send();
|
res.send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let name = 'Manual-' + moment().format('YYYY-MM-DD_HH:mm');
|
let name = 'Manual-' + moment().format('YYYY-MM-DD_HH-mm');
|
||||||
hassioApiTools.createNewBackup(name).then((id) => {
|
hassioApiTools.createNewBackup(name).then((id) => {
|
||||||
hassioApiTools.downloadSnapshot(id)
|
hassioApiTools.downloadSnapshot(id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -124,7 +124,7 @@ class CronContainer {
|
|||||||
if (status.status === "creating" || status.status === "upload" || status.status === "download")
|
if (status.status === "creating" || status.status === "upload" || status.status === "download")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let name = 'Auto-' + moment().format('YYYY-MM-DD_HH:mm');
|
let name = 'Auto-' + moment().format('YYYY-MM-DD_HH-mm');
|
||||||
hassioApiTools.createNewBackup(name).then((id) => {
|
hassioApiTools.createNewBackup(name).then((id) => {
|
||||||
hassioApiTools.downloadSnapshot(id)
|
hassioApiTools.downloadSnapshot(id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user