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

Command-line version of XBian-copier
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Command-line version of XBian-copier
16th Mar, 2014, 03:17 PM
Post: #9
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Command-line version of XBian-copier
(1st Mar, 2014 06:34 AM)palswim Wrote:  
(1st Mar, 2014 06:29 AM)IriDium Wrote:  You are trying to invoke a command that was never intended, nor tested, to be invoked from the command line, so I'm not surprised you are encountering problems.

I had the problems using the "XBian copier" entry in the XBian-config utility. I'll have to verify more, but the command line seems to have worked better for me.

@palswim

the middleware is btrfs-auto-snapshot script which uses few different approaches. base idea for cloning btrfs is of course to use the native btrfs send | btrfs recv (it is atomic, copied are data streams not files so it is faster, supports incremental sends (on CoW the data saved since last send).

the img is created as:
1) file is created
2) file is truncated do needed size (size prealocation)
3) in the file 2 partitions are created (/boot and /btrfstop
3a) the parts are mounted via loop devices
4) into /boot /boot is copied and cmdline.txt adapted
5) btrfs send | btrfs recv is used to copy all found subvolumes
6) done

by default size of img is defined as used space reported by df (which unnecessary allocates waste space used by local snapshots which are NOT copied) + 500MB.

this size can be overriden on command line --size

check
Code:
btrfs-auto-snapshot --help

currently I added copying even from ANY filesystem to ANY files-system (via tar | tar -x) but because of formatting of dest partition only ext2/3/4 f2fs nfs is tested and paired with mkfs. this universal copy-to-copy is in /usr/local/include/xbian-config/modules/xbiancopy/main as one function.

btrfs-auto-snapshot is meant as universal snapshot management tool (cross platform). so xbian specifis are kept at xbian-config side, if needed actions resolve to btrfs & snapshots, btrfs-auto-snapshot is called.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Command-line version of XBian-copier - palswim - 28th Feb, 2014, 08:54 AM
RE: Command-line version of XBian-copier - belese - 28th Feb, 2014, 11:57 PM
RE: Command-line version of XBian-copier - palswim - 1st Mar, 2014, 04:49 AM
RE: Command-line version of XBian-copier - belese - 1st Mar, 2014, 05:18 AM
RE: Command-line version of XBian-copier - IriDium - 1st Mar, 2014, 06:29 AM
RE: Command-line version of XBian-copier - palswim - 1st Mar, 2014, 06:34 AM
RE: Command-line version of XBian-copier - mk01 - 16th Mar, 2014 03:17 PM
RE: Command-line version of XBian-copier - belese - 1st Mar, 2014, 06:38 AM
RE: Command-line version of XBian-copier - IriDium - 1st Mar, 2014, 06:44 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Xbian-copier not working.... Skywatch 61 116,697 4th Dec, 2018 07:00 PM
Last Post: Skywatch
  [PROBLEM] Command line hangs husntvar 1 5,973 31st Dec, 2016 03:54 PM
Last Post: rikardo1979
  command line console does not fit on the screen Paul Lenz 3 9,258 29th Mar, 2016 06:16 AM
Last Post: Nachteule
  launch command line FROM kodi Enderswood 3 11,885 5th Feb, 2016 12:30 AM
Last Post: Enderswood
  XBMC Command line raspuca 2 26,024 15th Jul, 2013 05:52 AM
Last Post: mk01
  Using command line tietie 2 12,350 20th May, 2013 12:38 AM
Last Post: tietie

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

Current time: 29th May, 2025, 05:19 PM Powered By MyBB, © 2002-2025 MyBB Group.