User Tools

Site Tools


linux:backup

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
linux:backup [2024/05/02 17:34] mslinux:backup [2024/05/24 17:09] (current) ms
Line 41: Line 41:
  
 ====== tar ====== ====== tar ======
-===== Backup ===== 
 <code> <code>
 tar -cjf /path/to/tarfile.tar --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/swapfile} /path/to/backupfiles tar -cjf /path/to/tarfile.tar --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/swapfile} /path/to/backupfiles
 </code> </code>
 +
 +====== dd ======
 +==== Ganze Disk oder Partition sichern ====
 +<code>
 +dd if=/dev/sda bs=4M status=progress | gzip > /path/to/backup.img.gz
 +</code>
 +==== Restore ====
 +<code>
 +gzip -dc backup.img.gz | dd of=/dev/sda bs=4M status=progress
 +</code>
 +
linux/backup.1714664065.txt.gz · Last modified: 2024/05/02 17:34 by ms

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki