Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:rsync [2017/04/22 14:31] – created lamboringo | linux:rsync [2019/03/19 07:55] (current) – lamboringo | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| rsync --dry-run --itemize-changes --stats -h --archive box.local/ | rsync --dry-run --itemize-changes --stats -h --archive box.local/ | ||
| + | System and data backup | ||
| + | # linux | ||
| + | time rsync --dry-run --exclude ' | ||
| + | time rsync --dry-run --exclude ' | ||
| + | time rsync --dry-run --exclude .cache --exclude ' | ||
| + | # win | ||
| + | time rsync --dry-run --exclude ' | ||
| + | time rsync --dry-run --exclude ' | ||
| + | | ||
| + | === clone sth like the usb key you bootde from === | ||
| + | partitions (lsblk) | ||
| + | sdc 8:32 | ||
| + | ├─sdc1 | ||
| + | ├─sdc2 | ||
| + | ├─sdc3 | ||
| + | └─sdc4 | ||
| + | then rsync(s) | ||
| + | time rsync --dry-run --itemize-changes -a --stats -h /boot/ / | ||
| + | time rsync --dry-run --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / / | ||
| + | time rsync --dry-run --itemize-changes -a --stats -h /home/ / | ||
| + | |||
| + | tests & edit & run | ||
| + | mount --bind /dev / | ||
| + | # same for sys & proc | ||
| + | # edit / | ||
| + | ll / | ||
| + | chroot / | ||
| + | # grub2-install /dev/sd?? /dev/sda or /dev/sdb or /dev/sdc usually | ||
| + | umount / | ||
| + | umount / | ||
| + | umount / | ||
| + | umount / | ||
| + | umount / | ||
| + | umount / | ||
| + | / | ||
| + | # reboot | ||
| + | |||
| + | == links == | ||
| + | |||
| + | * https:// | ||