Use terminal options to restore snapshot?

Asked by Farid Khoshnevissan

Hi, I'm trying to use systemback-cli to create and restore snapshots of the system. I'm trying to do all of this automated, without needing someone to go through the options manually each time they want to create or restore a snapshot of the system. For systemback-cli, the help menu mentions I can use -n as a terminal option to create a new snapshot of the system. Is there something similar for restore?

For what I'm trying to do, I don't need to go to any specific snapshot, just one that I plan to create at the beginning of system setup.

Thanks!
-Farid Khoshnevissan

Question information

Language:
English Edit question
Status:
Answered
For:
Systemback Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kendek (nemh) said :
#1

This is little problematic because the systemback-cli uses the ncurses for displaying the interface. This mean that the process must be start in the foreground in a 80x24+ terminal emulator, without redirect stdout.
Maybe this is not a real problem for creating a new restore point, but there is many restore points with dynamic names. You need to select one of them to restore the system. This would be problematic with a static command. Ok, not impossible (using recently created or set serial number) but currently such a possibility is not implemented.
There is a solution with emulated key events, for example:

xterm -e "systemback-cli" & (sleep 1s ; xdotool key 1 ; xdotool key 2 ; xdotool key 1 ; xdotool key n ; xdotool key n ; xdotool key y)

But this is just a starting command, you need to detect the end (possible, just tricky).

Can you help with this problem?

Provide an answer of your own, or ask Farid Khoshnevissan for more information if necessary.

To post a message you must log in.