Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

CLI snapshot /home/ directory #915

Open
jfrofl opened this issue Jun 1, 2022 · 3 comments
Open

CLI snapshot /home/ directory #915

jfrofl opened this issue Jun 1, 2022 · 3 comments

Comments

@jfrofl
Copy link

jfrofl commented Jun 1, 2022

I couldn't find a way to call out including the /home/ directory like you can in the GUI in CLI. I'm hoping to be able to revert several class laptops through ssh back to known start position (removing browser history/loaded browser certs/removing downloads/etc).

Ideally being able to include an option to restore the /home/ directories as part of the cli commands would be great. Or if there is another way of doing what I'm trying to do, that'd also be great.

@jfrofl
Copy link
Author

jfrofl commented Jun 7, 2022

Further elaboration here. I have a snapshot that will restore as expected with the UI. The snapshot has /home/ directories included, so that when I restore from snapshot in the user interface the files that were created during that students session are removed.
The files are not removed when I restore from snapshot through the command line based on some brief testing.

@Kicey
Copy link

Kicey commented Jul 24, 2022

If your root and home are in a same partition, it automatically do that.
Otherwise, you can use --snapshot-device to specify the device you want to back up.
You can also edit the config to change the default behavior.
The target to back up of timeshift is device, not directory.

@Kicey
Copy link

Kicey commented Jul 24, 2022

supplement: comment out the path in exclude element in config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants