diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/routes/api.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/routes/api.js index 2edcbc2..f163947 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/routes/api.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/routes/api.js @@ -141,7 +141,7 @@ router.post('/new-backup', function(req, res, next) { res.send(); 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.downloadSnapshot(id) .then(() => { @@ -185,4 +185,4 @@ router.post('/clean-now', function(req, res, next){ -module.exports = router; \ No newline at end of file +module.exports = router; diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js index da2ecd1..07ef12b 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/cronTools.js @@ -124,7 +124,7 @@ class CronContainer { if (status.status === "creating" || status.status === "upload" || status.status === "download") 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.downloadSnapshot(id) .then(() => {