Skip to content

Commit

Permalink
Merge pull request #1 from cwagz/cwagz-patch-1
Browse files Browse the repository at this point in the history
Update backup.sh
  • Loading branch information
cwagz committed Mar 1, 2022
2 parents a13b383 + cbb3e57 commit eea983b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backups/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ tar -zcvf ${BACKUP_FOLDER}/Powerwall-Dashboard.$STAMP.tgz influxdb grafana

# Cleanup Old Backups
echo "Cleaning up old backups"
rm -rf ${DASHBOARD}/influxdb/backups/* # Delete InfluxDB snapshots after backup
find ${BACKUP_FOLDER}/Powerwall-Dashboard.*tgz -mtime +${KEEP} -type f -delete
echo "Done"
echo "Done"

0 comments on commit eea983b

Please sign in to comment.