Restoring a TTY Session

If a restored application instance has a TTY session, Memory Machine Management Center (M3C) opens the session using the tmux utility.

Before you begin

Install tmux version 1.8 or higher. The tmux utility must be in the execution path on the data host where you restore the session.

Capture a snapshot of an application with a command-line interface, for example a Redis client console. See Capturing a Snapshot Using Memory Machine Management Center. Then stop the application instance; see Stopping an Application Instance.

About this task

Procedure

  1. In the Applications Console, choose the application instance that you want to restore.
  2. In the Snapshot Timeline, choose the snapshot to restore.
  3. Choose Restore.
  4. Optional: If the application instance has an attached TTY, the Restore Instance Dialog shows the Tmux Session Textbox. Enter a name for the tmux session.
    If you do not enter a name, the system assigns the application instance's PID to the tmux name.
  5. Click Restore.
  6. When the process has been restored, click the Tmux Session Tab.
  7. Click the Copy Icon next to the Attach Command.
  8. Paste the command into a terminal window and press Enter.
    Important: You must have permission to access the tmux socket file path. We recommend that you log in as (or su to) the owner of the socket file path before connecting to the session.

    The application's command line interface is restored in the terminal window.