From d071f9e776467bb5d4a6fdf38fe280f73ac0ef11 Mon Sep 17 00:00:00 2001 From: James Maple Date: Wed, 27 Nov 2024 11:53:52 +0000 Subject: [PATCH] Push version 1.2 --- README.md | 12 +- changelog.md | 5 + conf/config.ini | 4 + src/.DS_Store | Bin 6148 -> 6148 bytes src/crate.py | 55 ++++++-- src/functions/file.py | 20 ++- src/functions/ntfy.py | 278 +++++++++++++++++++++++++++++++++++++ src/functions/retention.py | 9 +- src/functions/sftp.py | 9 +- 9 files changed, 376 insertions(+), 16 deletions(-) create mode 100644 src/functions/ntfy.py diff --git a/README.md b/README.md index 32486be..3f32a1e 100644 --- a/README.md +++ b/README.md @@ -95,12 +95,20 @@ This section provides an explanation for each configurable within the config fil ### Retention | Configurable | Description | |-------------------------------|---------------------------------------------------------------------------| -| LOCAL_RETENTION_ENABLED | "True" or "False" Enables/Disables retentionc cleanup on the local copy | -| OFFSITE_RETENTION_ENABLED | "True" or "False" Enables/Disables retentionc cleanup on the offsite copy | +| LOCAL_RETENTION_ENABLED | "True" or "False" Enables/Disables retention cleanup on the local copy | +| OFFSITE_RETENTION_ENABLED | "True" or "False" Enables/Disables retention cleanup on the offsite copy | | LOCAL_RETENTION_PERIOD_DAYS | Store backups for X days. Older backups will be deleted. | | OFFSITE_RETENTION_PERIOD_DAYS | Store backups for X days. Older backups will be deleted. | +### NTFY +| Configurable | Description | +|-------------------------------|---------------------------------------------------------------------------| +| NTFY_ENABLED | "True" or "False" Enables/Disables Ntfy notifications | +| NTFY_HOST | Ntfy server URL | +| NTFY_TOPIC | Ntfy topic to subscribe to | + + ______________________   diff --git a/changelog.md b/changelog.md index a6e87fa..a5fb181 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ ## Change log +### V 1.2 +- Implement ntfy notifications +- Added some missing error messages before exit conditions + + ### V 1.1 - Broke changelog out into its own file - Moved issues from readme to git issues diff --git a/conf/config.ini b/conf/config.ini index 61f7f1b..e97ea24 100644 --- a/conf/config.ini +++ b/conf/config.ini @@ -38,3 +38,7 @@ OFFSITE_RETENTION_PERIOD_DAYS = +[NTFY] +NTFY_ENABLED = False +NTFY_HOST = https://ntfy.yourhost.tld +NTFY_TOPIC = CRATE \ No newline at end of file diff --git a/src/.DS_Store b/src/.DS_Store index aeb53b2e6601bff1cdf016bc61e7fb5d4f1cf7f1..5f6ccfe1e997f3818a60af865e168a60ca91abd2 100644 GIT binary patch delta 307 zcmZoMXfc=|#>B)qu~2NHo}wr_0|Nsi1A_nqLkUABLq0m9X!pg?Z&dJWr9vhsIUmjeNSW;T-lvorE;)Uer z=On?{iAiCZspatkBF_1FC5f4NsYPH7nJKA2B{AWdc`5njPWh#IDaByD!4L^fP7cm^ z0f}nYY6~+<9R*_(vsxX6YD*&n9R(9hquN?d4pC)&>!A4ToZP(pE}-LpfDz~sFyMvK zFsd8mlgUbqYbJ*<3iFf&7v<&T=cNN>8G$}^VA;&h!OsB<5+LV0^JIPzOAeqxV6!#{ Ih-_g70OrF_F#rGn delta 91 zcmZoMXfc=|#>B`mu~2NHo}wr#0|Nsi1A_nqLkUABLq0Uu6EyJegm_k^`t2q?>7TfXEhR0P=ek