Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: snapshot before shutdown #661

Open
rhjdvsgsgks opened this issue Jun 21, 2021 · 2 comments
Open

feature request: snapshot before shutdown #661

rhjdvsgsgks opened this issue Jun 21, 2021 · 2 comments

Comments

@rhjdvsgsgks
Copy link

i have already tried add a systemd unit to create a snapshot before shutdown.target, unfortunately not working because dbus already in "shutting down" state, use snapper create will got a Failure (org.freedesktop.systemd1.ShuttingDown). so it would be great if snapshot can be created on "server side" received "shutdown signal" from systemd.

@aschnell
Copy link
Member

snapperd is only running on demand for a short time when needed. So in general it is not running when the system is doing a shutdown.

@Zesko
Copy link

Zesko commented Feb 9, 2022

you can create the script shutdown_script.sh and move it in shutdown-directory (e.g KDE .config/plasma-workspace/shutdown/)

!#/usr/bin/env bash

# you can create snapshot, what you want
snapper ....
sleep 5 # wait for 5 sec.

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

No branches or pull requests

3 participants