Command-line version of XBian-copier
|
16th Mar, 2014, 03:17 PM
Post: #9
|
|||
|
|||
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. @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 |
|||
« Next Oldest | Next Newest »
|
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 | 107,324 |
4th Dec, 2018 07:00 PM Last Post: Skywatch |
|
[PROBLEM] Command line hangs | husntvar | 1 | 5,431 |
31st Dec, 2016 03:54 PM Last Post: rikardo1979 |
|
command line console does not fit on the screen | Paul Lenz | 3 | 8,664 |
29th Mar, 2016 06:16 AM Last Post: Nachteule |
|
launch command line FROM kodi | Enderswood | 3 | 11,252 |
5th Feb, 2016 12:30 AM Last Post: Enderswood |
|
XBMC Command line | raspuca | 2 | 25,479 |
15th Jul, 2013 05:52 AM Last Post: mk01 |
|
Using command line | tietie | 2 | 11,795 |
20th May, 2013 12:38 AM Last Post: tietie |