mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-24 10:12:59 +01:00
Compare commits
2 Commits
2c155b1060
...
65fb449a4a
Author | SHA1 | Date | |
---|---|---|---|
65fb449a4a | |||
73165cd764 |
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Sébastien Clément
|
Copyright (c) 2022 Sébastien Clément
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
@ -90,7 +90,7 @@ check [the contributor's page][contributors].
|
|||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Sébastien Clément
|
Copyright (c) 2022 Sébastien Clément
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -123,7 +123,7 @@ SOFTWARE.
|
|||||||
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
|
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
|
||||||
[issue]: https://github.com/Sebclem/hassio-nextcloud-backup/issues
|
[issue]: https://github.com/Sebclem/hassio-nextcloud-backup/issues
|
||||||
[license-shield]: https://img.shields.io/github/license/Sebclem/hassio-nextcloud-backup.svg
|
[license-shield]: https://img.shields.io/github/license/Sebclem/hassio-nextcloud-backup.svg
|
||||||
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
|
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
|
||||||
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
|
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
|
||||||
[reddit]: https://reddit.com/r/homeassistant
|
[reddit]: https://reddit.com/r/homeassistant
|
||||||
[releases-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg?include_prereleases
|
[releases-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg?include_prereleases
|
||||||
|
@ -27,7 +27,7 @@ Easily backup your Home Assistant snapshots to Nextcloud.
|
|||||||
[docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md
|
[docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md
|
||||||
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
|
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
|
||||||
[forum]: https://community.home-assistant.io/
|
[forum]: https://community.home-assistant.io/
|
||||||
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
|
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
|
||||||
[project-stage-shield]: https://img.shields.io/badge/project%20stage-beta-red.svg
|
[project-stage-shield]: https://img.shields.io/badge/project%20stage-beta-red.svg
|
||||||
[release-shield]: https://img.shields.io/badge/version-<%= version %>-blue.svg
|
[release-shield]: https://img.shields.io/badge/version-<%= version %>-blue.svg
|
||||||
[release]: https://img.shields.io/badge/version-<%= version %>-blue.svg
|
[release]: https://img.shields.io/badge/version-<%= version %>-blue.svg
|
||||||
|
@ -31,7 +31,7 @@ Easily backup your Home Assistant snapshots to Nextcloud.
|
|||||||
[docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md
|
[docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md
|
||||||
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
|
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
|
||||||
[forum]: https://community.home-assistant.io/
|
[forum]: https://community.home-assistant.io/
|
||||||
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
|
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
|
||||||
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
|
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
|
||||||
[release-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg
|
[release-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg
|
||||||
[release]: https://github.com/Sebclem/hassio-nextcloud-backup/releases
|
[release]: https://github.com/Sebclem/hassio-nextcloud-backup/releases
|
||||||
|
@ -241,9 +241,12 @@ function dellSnap(id) {
|
|||||||
responseType: "json",
|
responseType: "json",
|
||||||
};
|
};
|
||||||
|
|
||||||
got.post(`http://hassio/backups/${id}/remove`, option)
|
got.delete(`http://hassio/backups/${id}`, option)
|
||||||
.then(() => resolve())
|
.then(() => resolve())
|
||||||
.catch(() => reject());
|
.catch((e) => {
|
||||||
|
logger.error(e)
|
||||||
|
reject();
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
reject();
|
reject();
|
||||||
|
Loading…
Reference in New Issue
Block a user