Created
May 18, 2019 20:59
-
-
Save MatthewVance/93cb14513c57192a26923192c3a8c87c to your computer and use it in GitHub Desktop.
A script to return various stats about a Restic repo.
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 | |
#: Title : restic stats | |
#: Date : October 14, 2018 | |
#: Author : Matt Vance | |
#: Version : 1.0 | |
#: Description : Script to fully sytem backlup | |
#: License : MIT License (MIT) | |
# Copyright (C) 2018 Matthew Vance | |
export RESTIC_REPOSITORY=/Volumes/storage/matt/backup/repos/shared/ | |
export RESTIC_PASSWORD_FILE=/etc/restic/restic-pw.txt | |
CACHE=/home/restic/.cache | |
RESTIC=/usr/local/bin/restic | |
# restore-size (default) | |
$RESTIC stats \ | |
--cache-dir $CACHE | |
$RESTIC stats \ | |
--cache-dir $CACHE \ | |
--mode files-by-contents | |
$RESTIC stats \ | |
--cache-dir $CACHE \ | |
--mode blobs-per-file | |
$RESTIC stats \ | |
--cache-dir $CACHE \ | |
--mode raw-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment