Ravi Sir's Cards › AWS
Backups with tar
This revision card explains Backups with tar. It starts from the need that create gzip archive. It describes list it. The how-to section notes extract to a folder. An example on the card is use xz.
Read card text
What this card says
Why do we need it?
Create gzip archive.
tar czf etc.tgz /etc
What is it?
List it.
tar tzf etc.tgz | head
How to do it
Extract to a folder.
tar xzf etc.tgz -C /restore
Example
Use xz.
tar cJf logs.tar.xz logs/