1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-06 09:46:06 +01:00
Files
snapper/examples/python/create.py

13 lines
286 B
Python
Raw Permalink Normal View History

2012-04-26 15:48:42 +02:00
#!/usr/bin/python
import dbus
bus = dbus.SystemBus()
2012-07-24 10:19:52 +02:00
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
dbus_interface='org.opensuse.Snapper')
2012-04-26 15:48:42 +02:00
2012-04-27 12:08:18 +02:00
print snapper.CreateSingleSnapshot("root", "test", "", { "id" : "123" })
2012-04-26 15:48:42 +02:00