Talk:Full system backup with tar

From ArchWiki
Latest comment: 7 March 2023 by Rgomez in topic Alternative take

Serious flaw

tar -xattrs doesn't work: tar -xattrs (create then extract) isn't preserving extended attribute Ttoirrah (talk) 08:42, 19 April 2017 (UTC)Reply[reply]

Alternative take

This is an alternate take on the backup command, as a one liner, using Bash brace expansion, the newer zstandard algorithm and generating a sha512 signature:

# eval $(echo bsdtar "--exclude '/"{dev,proc,sys,tmp,run,media,lost+found}"\/*'" --acls --xattrs --zstd -c / \| tee /media_path/backup_name.tar.zst \| sha512sum \> /media_path/backup_name.tar.zst.sha512)

Afterwards the media integrity can be checked with:

# dd if=/media_path/backup_name.tar.zst | sha512sum

I have no experience yet in the Archwiki but I'd like to help with this article, I'll look into it. Rgomez (talk) 10:46, 7 March 2023 (UTC)Reply[reply]