linux:backup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:backup [2024/05/02 17:30] – [Backup] ms | linux:backup [2024/05/24 17:09] (current) – ms | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== rsync ====== | ====== rsync ====== | ||
+ | < | ||
+ | rsync [OPTION]... SRC [SRC]... DEST | ||
+ | </ | ||
===== 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 ===== | ||
< | < | ||
tar -cjf / | tar -cjf / | ||
</ | </ | ||
+ | |||
+ | ====== dd ====== | ||
+ | ==== Ganze Disk oder Partition sichern ==== | ||
+ | < | ||
+ | dd if=/dev/sda bs=4M status=progress | gzip > / | ||
+ | </ | ||
+ | ==== Restore ==== | ||
+ | < | ||
+ | gzip -dc backup.img.gz | dd of=/dev/sda bs=4M status=progress | ||
+ | </ | ||
+ |
linux/backup.1714663850.txt.gz · Last modified: 2024/05/02 17:30 by ms