Archive with live progress
Show bytes/ETA via pv while streaming into zstd; du -sb supplies total size for the bar
tar cf - /data | pv -s $(du -sb /data | awk '{print $1}') | zstd -T0 > data.tar.zst
- tool
- tar3 commands
More tar commands
-
tar -czg snapshot.snar -f backup-$(date +%F).tgz /dataLevel-based incremental backups: snapshot.snar tracks state so only changed files are archived
-
tar c -C /src . | ssh user@<host> 'tar x -C /dst'Copy a tree without intermediate file, preserving perms; add zstd in pipe for slow links