This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get current time to be used to compute age | |
NOW_SECONDS=$(date '+%s') | |
JSONDIR="/var/lib/restic-snapshot-dump" | |
PROMDIR="/var/lib/node_exporter" | |
# following will be replaced with actual restic snapshots command | |
for JSONFILE in "${JSONDIR}"/*.json; do |