snapshot¶
This command handles snapshot of the 66 ecosystem of the owner of the process.
Interface¶
snapshot [ -h ] create|restore|remove|list [<subcommand options>] name
This command creates, removes, restores or lists snapshots of the 66 ecosystem for the owner of the current process depending on the provided options. This command requires a functioning 66 ecosystem and does not verify the presence of mandatory 66 directories or files. Therefore, avoid using this command during the initial installation of 66 without first running another 66 command.
This command only handles the 66 ecosystem for the owner of the process. Making a snapshot as root does not handle users' 66 ecosystem.
This command can be used at any time without impacting the state of the running services and may be useful to downgrade a 66 ecosystem if a 66 automatic upgrade process goes wrong for whatever the reason.
This command can also be useful to transfer the exact same 66 ecosystem from a machine to another by making a snapshot, copying it to the targeted machine and restoring it.
Options¶
- -h, --help: prints this help.
Subcommands¶
- create: creates a snapshot of the 66 ecosystem.
- restore: restores a snapshot called name.
- remove: deletes a snapshot called name.
- list: list available snapshots.
Usage examples¶
Creates a snapshot named foo
66 snapshot create foo
Restores a snapshot named foo
66 snapshot restore foo
Deletes a snapshot named foo
66 snapshot remove foo
List all available snapshots
66 snapshot list
create¶
This subcommand creates a snapshot that doesn't exist yet.
Interface¶
snapshot create [ -h ] *name*
This subcommand makes a snapshot called name containing a verbatim copy of the /var/lib/66/system, /etc/66, /etc/66/conf, /etc/66/environment, /etc/66/seed, /etc/66/service, /usr/share/66/service, /usr/share/66/script and /usr/share/66/seed for root user, and make a verbatim copy of the $HOME/.66/system, $HOME/.66/service, $HOME/.66/script, $HOME/.66/conf, $HOME/.66/seed and $HOME/.66/environment directory for regular users.
/run/66, /var/log/66 and $HOME/.66/log for regular users are not taken into account.
The prefix system@ is reserved for snapshot names used in automatic upgrade processes. Please consider to choose a different prefix for your personal snapshot names.
Options¶
- -h, --help: prints this help.
Usage examples¶
Creates a snapshot named fooback
66 snapshot create fooback
restore¶
This subcommand restores a previously created snapshot.
Interface¶
snapshot restore [ -h ] *name*
This subcommand restores a previously created snapshot called name.
You can get a list of available snapshots by invoking the list subcommand.
Options¶
- -h, --help: prints this help.
Usage examples¶
Restores a snapshot named fooback
66 snapshot restore fooback
remove¶
This subcommand removes a previously created snapshot.
Interface¶
snapshot remove [ -h ] *name*
This subcommand removes a previously created snapshot called name. This operation cannot be undone. Process with caution.
You can get a list of available snapshots by invoking the list subcommand.
Options¶
- -h, --help: prints this help.
Usage examples¶
Removes a snapshot named fooback
66 snapshot remove fooback
list¶
This subcommand lists available snapshots.
Interface¶
snapshot list [ -h ]
This subcommand lists all available snapshots for the owner of the current process.
Options¶
- -h, --help: prints this help.
Usage examples¶
List available snapshots
66 snapshot list