Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:linux:backup:tar [2023/10/24 21:18] – angelegt psycoreen: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 directory structures can be backed up well with "tar". You simply create an archive:+Individual directory structures can be easily backed up with "tar". You simply create an archive:
  
 <code bash> <code bash>
Line 14: Line 14:
  
   * -c : create/create   * -c : create/create
-  * -p : permissions/get me the rights and owners+  * -p : permissions/get me the rights and owner
   * -v : verbose/show what is archived   * -v : verbose/show what is archived
   * -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 downloading the file, e.g. from a web server, you should calculate the md5 sum for verification. "md5sum" generates a unique number that changes if the downloaded file differs from the original.+Before you download the file from a web server, for example, you should calculate the md5 sum to check it. "md5sum" generates a unique number that changes if the downloaded file differs from the original.
  
 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:
 </code> </code>
  
-After downloading "myArchive.tar.gz", run the programme again on the target computer and you can compare the numbers+After downloading "myArchive.tar.gz", run the programme again on the target computer and you can compare the figures
  
-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 can also be redirected to a file and downloaded at the same time. This way you always have the total with the backup:
  
 <code bash> <code bash>
Line 51: Line 51:
 ===== Unpack ===== ===== Unpack =====
  
-Once the archive has been gzipped, it can be unpacked with: +You can unpack the archive again after it has been gzipped with : 
  
 <code bash> <code bash>
Line 57: Line 57:
 </code> </code>
  
-  * -x : extract/extract+  * -x : extract/unzip
   * -z : zip/decompress   * -z : zip/decompress
-  * -v : verbose/display on the console what is being unpacked+  * -v : verbose/print on the console what will be unpacked
   * -f : it is a file   * -f : it is a file
  
Line 74: Line 74:
 </code> </code>
  
-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: