Skip to content

Feature Request: Post/Pre snapshot create Hooks #153

@rusak47

Description

@rusak47

Hello!
Is your feature request related to a problem? Please describe.

Timeshift is designed to protect system files and settings. It is NOT a backup tool and is not meant to protect user data.

Before system upgrade, i've made a snapshot using Timeshift, and it successfully restored the system into working state after upgrade failed.
However, i have some LXD containers, and somehow after reboot some LVM volumes got irreversibly corrupted.
LXD have container snapshot and image backup commands, which i'd like to call before or after scheduled daily timeshift snapshot.

Describe the solution you'd like
Please, add support for "Post/Pre snapshot create" hooks.

UPD 230311 Right now I have no clue how to implement it, but it seems to me, that it may look like something similar to this: eee15b2.

Describe alternatives you've considered
I've configured timeshift-autosnap feature, so the best option is to have a "Post/Pre snapshot create" hook for this task, but, of course, the requested feature can be implemented using Linux crontab.

Thank you for your efforts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions