Advertisement
dHeinemann

tarstat.pl

Aug 19th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.26 KB | None | 0 0
  1. #!/usr/bin/perl
  2. my @archiveList = `tarsnap --list-archives`;
  3. my $archiveString = "";
  4. while (@archiveList)
  5. {
  6.     $archiveString .= " -f " .shift(@archiveList);
  7.     chomp($archiveString);
  8. }
  9. print(`tarsnap --print-stats --humanize-numbers $archiveString`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement