openSUSE / openSUSE/snapper

dbus method call to trigger database update

Open
#372 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
1.2k
Forks
160
Avg merge
5d 18h
Merged PRs (30d)
3

Description

  1. Creating a snapper aware structure for a new config via comandline, is possible (eg snap-test).
  2. Using a btrfs-send/btrfs-receive pipe will send send a snapshot to the new snapper config location (eg /var/lib/snap-test/1/
  3. create a valid snapper info.xml (type, num, date, description, userdata, ...)

Now it takes an undeterministic time, until a snapper -c snap-test list will show the new snapshot.
I'v seen in the code, that there is a dbus signal SnapshotCreated. How do i use it to manually trigger an update after i created the snapper relevant data?

Or, which method is available to trigger the desired behavoir?

And by the way: Thanks for providing snapper. A wonderful tool for my needs.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the DBus interface around the mentioned SnapshotCreated signal and the code path used by snapper -c snap-test list. Compare that behavior with the manually created config, btrfs-send/btrfs-receive snapshot, and info.xml; done should mean identifying or defining a reliable way to make the new snapshot appear immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.