new cron to log backup files.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Executable
+16
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user