Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 3.1 KB

README.md

File metadata and controls

37 lines (25 loc) · 3.1 KB

arch-m2m

Русский · Changes in 0.5.0

arch-m2m captures a running tmux session tree on Arch Linux x86-64 and restores it on another compatible system. You can pick up a partially typed Bash command, scroll back through earlier output, or save edits that were still in nano's buffer at capture time.

The semantic format supports tmux 3.8, Bash 5.3.20 with Readline 8.3.6, and nano 9.3. Adapters read application state and rebuild it in fresh processes on the destination. This permits transfers between Intel and AMD x86-64 using the registered executable and library builds. Capture requires a tree created by the tool and applications waiting at supported input boundaries. Active SSH connections and unrelated jobs fall outside this profile. Supported states and files

What you have Commands What you need to restore
An instance created by arch-m2m new arch-m2m capture, verify, restore The semantic bundle, registered application builds, matching tmux debug symbols and the approved CRIU runtime
A managed native instance or a verified native checkpoint arch-m2m native save, verify, restore under the native subcommand The native checkpoint and its required parents, matching control files, CRIU runtime and compatible CPU/kernel features

Since 0.4.0, semantic restore requires per-process seccomp evidence. You can inspect 0.3.0 semantic bundles and verify their contents, but restoration requires a new capture from the live source. For existing native checkpoints, see the toolkit upgrade procedure.

Getting started

Run host operations as root, outside the managed tmux session. On a prepared source, start a session and attach to it. After detaching, capture it into a new directory.

arch-m2m new --name source-01 --session work
owner=/srv/arch-m2m/semantic/instances/source-01/constructor-owner.json
arch-m2m attach --owner "$owner" --session work
arch-m2m capture --owner "$owner" --output /root/work-bundle
arch-m2m verify /root/work-bundle

Copy the completed directory to the prepared destination. Restore checks the application state and terminal relationships, then performs a local CRIU dump and independent restore before it publishes the new instance. Installation and destination setup · Complete capture and restore example

Documentation

The project code is licensed under MIT. Portions derived from tmux retain ISC notices and the CRIU patches retain GPL-2.0-only terms. See LICENSE and licenses/ in the source tree.