Both sides previous revision Previous revision Next revision | Previous revision |
linux:rsync [2017/07/18 23:04] – lamboringo | linux:rsync [2019/03/19 07:55] (current) – lamboringo |
---|
time rsync --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h /boot/ /run/media/barriot/barracuda3t/pendejo/boot/ | time rsync --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h /boot/ /run/media/barriot/barracuda3t/pendejo/boot/ |
time rsync --dry-run --exclude 'win7-HardDisk1.vdi' --exclude '*.fucked.up' --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/barriot/barracuda3t/pendejo/rootfs/ | time rsync --dry-run --exclude 'win7-HardDisk1.vdi' --exclude '*.fucked.up' --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/barriot/barracuda3t/pendejo/rootfs/ |
time rsync --dry-run --exclude 'win7-HardDisk1.vdi' --exclude '*.fucked.up' --itemize-changes -a --stats -h /home/ /run/media/barriot/barracuda3t/pendejo/home/ | time rsync --dry-run --exclude .cache --exclude 'win7-HardDisk1.vdi' --exclude '*.fucked.up' --itemize-changes -a --stats -h /home/ /run/media/barriot/barracuda3t/pendejo/home/ |
# win | # win |
time rsync --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /mnt/win_boot/ /run/media/barriot/barracuda3t/pendejo/sda1.WD500Gb.win7_boot/ | time rsync --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /mnt/win_boot/ /run/media/barriot/barracuda3t/pendejo/sda1.WD500Gb.win7_boot/ |
| |
tests & edit & run | tests & edit & run |
mount --bind /dev /run/media/lambo/dev | mount --bind /dev /run/media/lambo/hpsystem/dev |
# same for sys & proc | # same for sys & proc |
# edit /boot/grub2/grub.cfg for uuids | # edit /boot/grub2/grub.cfg for uuids |
chroot /run/media/lambo/hpsystem/ | chroot /run/media/lambo/hpsystem/ |
# grub2-install /dev/sd?? /dev/sda or /dev/sdb or /dev/sdc usually | # grub2-install /dev/sd?? /dev/sda or /dev/sdb or /dev/sdc usually |
| umount /run/media/lambo/hpsystem/dev |
| umount /run/media/lambo/hpsystem/proc |
| umount /run/media/lambo/hpsystem/sys |
| umount /run/media/lambo/hpsystem/home |
| umount /run/media/lambo/hpsystem/boot |
| umount /run/media/lambo/hpsystem |
| /run/media/lambo/boot |
| # reboot |
| |
| == links == |
| |
| * https://opensource.com/article/19/3/backup-solutions |