Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
6th Feb, 2014, 04:17 AM
Post: #3
TheBigD Offline
Registered
Posts: 4
Joined: Feb 2014
Reputation: 0
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
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


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

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 8th Jun, 2025, 11:04 AM Powered By MyBB, © 2002-2025 MyBB Group.