Mar 9, 2003 #1 kyle123 Technical User Feb 27, 2003 5 US Howdo you total the file size field from tar tvf output to verify the backup size is the same as the restored size? Thanks.
Howdo you total the file size field from tar tvf output to verify the backup size is the same as the restored size? Thanks.
Mar 10, 2003 #2 toolkit Programmer Aug 5, 2001 771 GB Something like this should work: Code: tar tvf foo.tar | awk '{sum+=$3}END{print sum}' This is assuming your version of tar prints the size value in the 3rd column of your output... Hope this helps Upvote 0 Downvote
Something like this should work: Code: tar tvf foo.tar | awk '{sum+=$3}END{print sum}' This is assuming your version of tar prints the size value in the 3rd column of your output... Hope this helps