Skip to content

Instantly share code, notes, and snippets.

@smooker
Created December 9, 2022 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smooker/566bb42c801aa6a7107205220a523add to your computer and use it in GitHub Desktop.
Save smooker/566bb42c801aa6a7107205220a523add to your computer and use it in GitHub Desktop.
BASH backup script eval tar pigz
#!/bin/bash
TAR="/bin/tar --use-compress-program=\"pigz --best --recursive | pv\" -cf"
#echo $TAR
#exit
eval ${TAR[@]} ./etc.tar.gz /etc
eval ${TAR[@]} ./usr.share.tar.gz /usr/share
eval ${TAR[@]} ./smooker.config.tar.gz /home/smooker/.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment