Created
March 14, 2019 11:03
-
-
Save kevit/480e2c0cf0e518fef87cd30a4e3497d3 to your computer and use it in GitHub Desktop.
Get last restic backup time
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
restic snapshots -r /backup -p pass --json | jq -r '.[-1].time|strptime("%Y-%m-%dT%H:%M:%S.%Z")|mktime' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment