dotfiles/config/fish/functions/archive.fish

6 lines
163 B
Fish
Raw Normal View History

2019-10-17 08:08:13 +00:00
#!/usr/bin/fish
function arxz
set size (du -sh $argv[1] | awk '{print $1}')
tar c $argv[1] | pv -cN raw -s {$size} | xz | pv -cN cmp > $argv[1].tar.xz
end