UP | HOME
grm blog. Work is copyrighted unless otherwise stated.
2025-02-11 Tue
^

Backup with zstd and tar

Some useful tar/zstd commands.

# create archive
tar -cf - -C /path/to file | zstd -9 -fo file.tar.zst

# extract archive
zstd -qdc file.tar.zst | tar --same-owner -xf -

# or
tar --zstd -xf file.tar.zst