Update: Maybe I shouldn’t be reading man pages at 1am, because this script is redundant. Colin Percival, the creator of Tarsnap pointed out in the comments below that one can simply use ’-f *’ to automatically specify all archives when using –print-stats.
I just wrote a small Perl script to print the stats of all my Tarsnap archives. Tarsnap doesn’t seem to have an option to do this easily, so this script builds a command in the format of tarsnap –print-stats –humanize-numbers -f archive1 -f archive2 … -f archiveN.
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9
I probably should rewrite it in Shell, but it’s nearly 1am and I don’t feel like spending more than five minutes on this.
Script source is available on Pastebin.