Solved: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
|
6th Feb, 2014, 04:17 AM
Post: #3
|
|||
|
|||
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
Ok, so copying the files should work. Do i need to recreate the sub volumes on the target partiton? Like this?
Terminal sudo -i #mount img file after using parted to see offset mount -o loop,ro,offset=36700160 /media/path/xbianBU140125/xbian.img /media/imgf #format and mount usb stick to be used for system umount /dev/sda2 mkfs.btrfs -L xbian-usb /dev/sda2 mount /dev/sda2 /mnt cd /mnt #create subvolumes? btrfs subvolume create root btrfs subvolume create home btrfs subvolume create modules btrfs subvolume create data #copy files rsync -aAX /media/imgf/root/@/* /mnt/root/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress rsync -aAX /media/imgf/home/@/* /mnt/home/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress rsync -aAX /media/imgf/modules/@/* /mnt/modules/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress rsync -aAX /media/imgf/data/@/* /mnt/data/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 5th Feb, 2014, 11:32 PM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - mk01 - 6th Feb, 2014, 12:27 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 6th Feb, 2014 04:17 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - mk01 - 6th Feb, 2014, 04:51 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 6th Feb, 2014, 09:35 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 8th Feb, 2014, 05:49 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - mk01 - 17th Mar, 2014, 11:37 PM
|