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:rsync [2017/04/23 17:55] lamboringolinux:rsync [2019/03/19 07:55] (current) lamboringo
Line 32: Line 32:
  
 System and data backup System and data backup
-  time rsync  --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h /boot/ /mnt/barracuda3t/pendejo/boot/ +  # linux 
-  time rsync  --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /mnt/barracuda3t/pendejo/rootfs/ +  time rsync  --dry-run --exclude '*.fucked.up' --itemize-changes -a --stats -h /boot/ /run/media/barriot/barracuda3t/pendejo/boot/ 
-  time rsync  --exclude '*.fucked.up' --itemize-changes -a --stats -h /home/ /mnt/barracuda3t/pendejo/home/+  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 .cache --exclude 'win7-HardDisk1.vdi' --exclude '*.fucked.up' --itemize-changes -a --stats -h /home/ /run/media/barriot/barracuda3t/pendejo/home/ 
 +  # 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_sys/ /run/media/barriot/barracuda3t/pendejo/sda2.WD500Gb.win7_C/ 
 +   
 +=== clone sth like the usb key you bootde from === 
 +partitions (lsblk) 
 +  sdc      8:32      15G  0 disk  
 +  ├─sdc1   8:33       1G  0 part  
 +  ├─sdc2   8:34     548M  0 part /run/media/lambo/hpboot 
 +  ├─sdc3   8:35       1G  0 part /run/media/lambo/hphome 
 +  └─sdc4   8:36    12.4G  0 part /run/media/lambo/hpsystem
  
 +then rsync(s)
 +  time rsync  --dry-run --itemize-changes -a --stats -h /boot/ /run/media/lambo/hpboot/ 
 +  time rsync  --dry-run --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/lambo/hpsystem/
 +  time rsync  --dry-run --itemize-changes -a --stats -h /home/ /run/media/lambo/hphome/
  
 +tests & edit & run
 +  mount --bind /dev /run/media/lambo/hpsystem/dev
 +  # same for sys & proc
 +  # edit /boot/grub2/grub.cfg for uuids
 +  ll /dev/disk/by-uuid/
 +  chroot /run/media/lambo/hpsystem/
 +  # 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