Skip to content

Commit

Permalink
Update to xz compression #337
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Nov 19, 2023
1 parent 2e781f4 commit a95ef42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backups/backup.sh.sample
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ docker exec influxdb influxd backup -database powerwall /var/lib/influxdb/backup
# Backup Powerwall-Dashboard Data
echo "Backing up Powerwall-Dashboard Data (influxdb)"
cd ${DASHBOARD}
tar -Jcvf ${BACKUP_FOLDER}/Powerwall-Dashboard.$STAMP.tar.xz influxdb
tar -zcvf ${BACKUP_FOLDER}/Powerwall-Dashboard.$STAMP.tgz influxdb

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

0 comments on commit a95ef42

Please sign in to comment.