new cron to log backup files.

This commit is contained in:
2020-04-29 18:26:31 +00:00
parent 2408f6eca6
commit 606978754c
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ declare -A STORAGE_ALERT
# storage in GiB
STORAGE_ALERT=(["/"]=5)
BACKUP_DIRECTORY="/home/ubuntu/data"
# when set to 0, all backups are kept
PRUNE_DOWN_TO=0
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
LOCATION=`dirname "$0"`
source "${LOCATION}/../config.sh"
cd "${BACKUP_DIRECTORY}"
backups=`find * -type f | xargs du -h`
echo "${backups}"
${LOCATION}/../discord.sh general "${backups}"
hashes=`find * -type f | xargs md5sum`
echo "${hashes}"
${LOCATION}/../discord.sh general "${hashes}"