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
Next revision
Previous revision
linux:backup [2024/05/02 17:30] – [Backup] mslinux:backup [2024/05/24 17:09] (current) ms
Line 1: Line 1:
 ====== rsync ====== ====== rsync ======
 +<code>
 +rsync [OPTION]... SRC [SRC]... DEST
 +</code>
 ===== Backup ===== ===== Backup =====
 Backup der ganzen Disk falls /home keine eigene Partition Backup der ganzen Disk falls /home keine eigene Partition
Line 38: 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.1714663850.txt.gz · Last modified: 2024/05/02 17:30 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