[ Prev ] [ Index ] [ Next ]

Create snapshot manually

Created Sonntag 31 Juli 2022


Single

Create a standalone simple snapshot (Src):
#/$ # snapper -c <Config name> create -t single [-d "<Description>"]


Pre/post


Pre

Creates a pre snapshot (Src):
#/$ snapper -c <Config name> create -t pre -p [-d "<Description>"]


E.g.

# snapper -c home create -t pre -p "<Description>"
Output: 2


Post

Create a post snapshot that is linked to a previously created pre snapshot (Src):
#/$ snapper -c <Config name> create -t post --pre-num <Pre snapshot number> [-d "<Description>"]
Pre snapshot number: The number of the previously created pre snapshot.


E.g.

Post snapshot is based on the pre snapshot in the pre example above:
# snapper -c home create -t post --pre-num 2


Automatically with a command

Wrap a command in pre and post snapshots.
#/$ snapper -c <Config name> create --command "<Command>" [-d "<Description>"]
Command: Before and after this command is a snapshot created.