I cant seem t figure out how to compress a directory (test) with tar.bz2 in conjunction with pv.
Code:
pv test | tar -zcvf > test2.img.bz2
pv: (stdin): read failed: Is a directory
0B 0:00:00 [ 0B/s] [<=> ]
tar: option requires an argument -- 'f'
Try 'tar --help' or 'tar --usage' for more information.
I'm Sure theres something wrong with the syntax or something but I cant for the life of me seem to figure it out. Im not even sure what parameters to use, they range from zcvf to cjf to cf to zcvf.
What do I need to use to compress a directory with tar and bz2 and view the progress in pv ?