Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:linux:backup:tar [2023/10/24 21:18] – angelegt psycore | en:linux:backup:tar [2023/11/10 00:41] (current) – Automatic translation 157.55.39.58 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux backup with tar ====== | ====== Linux backup with tar ====== | ||
- | How to make a backup of directories with tar? You can read about it in this tutorial. | + | How to make a backup of directories with tar? You can find out in this tutorial. |
===== Introduction ===== | ===== Introduction ===== | ||
- | Single | + | Individual |
<code bash> | <code bash> | ||
Line 14: | Line 14: | ||
* -c : create/ | * -c : create/ | ||
- | * -p : permissions/ | + | * -p : permissions/ |
* -v : verbose/ | * -v : verbose/ | ||
* -l : link?/do not follow links to other partitions | * -l : link?/do not follow links to other partitions | ||
- | * -f : file/it is a file, so in this case a file is created | + | * -f : file/it is a file, in this case a file is created |
The path to the archive can be absolute (/path/... ) or relative (./path/... or path/... ). | The path to the archive can be absolute (/path/... ) or relative (./path/... or path/... ). | ||
Line 24: | Line 24: | ||
===== Zipping ===== | ===== Zipping ===== | ||
- | You can now compress the archive, e.g. with gzip: | + | You could now compress the archive, e.g. with gzip: |
<code bash> | <code bash> | ||
Line 32: | Line 32: | ||
===== md5sum ===== | ===== md5sum ===== | ||
- | Before | + | Before |
The md5 sum of a file can be calculated as follows: | The md5 sum of a file can be calculated as follows: | ||
Line 40: | Line 40: | ||
</ | </ | ||
- | After downloading " | + | After downloading " |
- | You can also redirect the output of md5sum to a file and download it at the same time. This way you always have the total with the backup: | + | The output of md5sum |
<code bash> | <code bash> | ||
Line 51: | Line 51: | ||
===== Unpack ===== | ===== Unpack ===== | ||
- | Once the archive has been gzipped, it can be unpacked | + | You can unpack |
<code bash> | <code bash> | ||
Line 57: | Line 57: | ||
</ | </ | ||
- | * -x : extract/extract | + | * -x : extract/unzip |
* -z : zip/ | * -z : zip/ | ||
- | * -v : verbose/display | + | * -v : verbose/print on the console what will be unpacked |
* -f : it is a file | * -f : it is a file | ||
Line 74: | Line 74: | ||
</ | </ | ||
- | You can look into an archive and unpack parts or all of it with MidnightCommander (mc). | + | You can use MidnightCommander (mc) to look into an archive and unpack parts or all of it. |
Further help is available: | Further help is available: |