Skip to content

feature request: snapshot before shutdown #661

Open

Description

@rhjdvsgsgks

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.

Activity

  1. aschnell commented on Jun 22, 2021

    @aschnell
    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.

  2. Zesko commented on Feb 9, 2022

    @Zesko

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions