Public Member Functions | |
| TimeshiftDetectResult | detect () |
| bool | migrate (TimeshiftDetectResult detected, bool remove_timeshift_config=false, Gtk.Window? parent_window=null) |
Private Member Functions | |
| bool | load_timeshift_config (string path, TimeshiftDetectResult result) |
| string | find_device_by_uuid (string uuid) |
| bool | mount_backup_device (TimeshiftDetectResult result) |
| void | unmount_backup_device (string mount_path) |
| void | scan_snapshots (TimeshiftDetectResult result) |
| ImportedSnapshot | parse_snapshot (string path, string name, bool is_btrfs) |
| void | update_bgbackup_config (TimeshiftDetectResult detected) |
Static Private Attributes | |
| const string | TIMESHIFT_CONF = "/etc/bastionguard-backup/bastionguard-backup.json" |
| const string | TIMESHIFT_CONF_LEGACY = "/etc/bastionguard-backup.json" |
| const string | BGBACKUP_CONF = "/etc/bastionguard-backup/bastionguard-backup.json" |
| const string | BGBACKUP_CONF_DIR = "/etc/bastionguard-backup" |
| const string | SCAN_MOUNT_POINT = "/run/bastionguard-backup/import-scan" |
Definition at line 73 of file TimeshiftImport.vala.
|
inline |
Definition at line 91 of file TimeshiftImport.vala.
References find_device_by_uuid(), load_timeshift_config(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), log_msg(), mount_backup_device(), scan_snapshots(), TIMESHIFT_CONF, TIMESHIFT_CONF_LEGACY, and BastionGuardImport.TimeshiftDetectResult.TimeshiftDetectResult().
|
inlineprivate |
Definition at line 292 of file TimeshiftImport.vala.
References TeeJee.Logging.log_error().
Referenced by detect().
|
inlineprivate |
Definition at line 265 of file TimeshiftImport.vala.
References BastionGuardImport.TimeshiftDetectResult.backup_uuid, Error, TeeJee.JsonHelper.json_get_bool(), TeeJee.JsonHelper.json_get_string(), and TeeJee.Logging.log_error().
Referenced by detect().
|
inline |
Definition at line 147 of file TimeshiftImport.vala.
References BastionGuardImport.TimeshiftDetectResult.backup_device, Error, BastionGuardImport.TimeshiftDetectResult.found, BastionGuardImport.TimeshiftDetectResult.is_btrfs, TeeJee.Logging.log_error(), log_msg(), BastionGuardImport.TimeshiftDetectResult.mount_path, BastionGuardImport.TimeshiftDetectResult.snapshots, TIMESHIFT_CONF, TIMESHIFT_CONF_LEGACY, unmount_backup_device(), and update_bgbackup_config().
|
inlineprivate |
Definition at line 321 of file TimeshiftImport.vala.
References BastionGuardImport.TimeshiftDetectResult.backup_device, TeeJee.FileSystem.dir_create(), TeeJee.Logging.log_error(), and SCAN_MOUNT_POINT.
Referenced by detect().
|
inlineprivate |
Definition at line 375 of file TimeshiftImport.vala.
References Error, TeeJee.JsonHelper.json_get_string(), TeeJee.Logging.log_debug(), and TeeJee.Logging.log_error().
Referenced by scan_snapshots().
|
inlineprivate |
Definition at line 354 of file TimeshiftImport.vala.
References Error, BastionGuardImport.TimeshiftDetectResult.is_btrfs, TeeJee.Logging.log_error(), parse_snapshot(), BastionGuardImport.TimeshiftDetectResult.snapshots, and BastionGuardImport.TimeshiftDetectResult.snapshots_path.
Referenced by detect().
|
inlineprivate |
Definition at line 341 of file TimeshiftImport.vala.
References TeeJee.Logging.log_error().
Referenced by migrate().
|
inlineprivate |
Definition at line 415 of file TimeshiftImport.vala.
References BastionGuardImport.TimeshiftDetectResult.backup_uuid, BGBACKUP_CONF, BGBACKUP_CONF_DIR, TeeJee.FileSystem.dir_create(), Error, BastionGuardImport.TimeshiftDetectResult.is_btrfs, TeeJee.Logging.log_error(), and log_msg().
Referenced by migrate().
|
staticprivate |
Definition at line 80 of file TimeshiftImport.vala.
Referenced by update_bgbackup_config().
|
staticprivate |
Definition at line 81 of file TimeshiftImport.vala.
Referenced by update_bgbackup_config().
|
staticprivate |
Definition at line 84 of file TimeshiftImport.vala.
Referenced by mount_backup_device().
|
staticprivate |
Definition at line 76 of file TimeshiftImport.vala.
|
staticprivate |
Definition at line 77 of file TimeshiftImport.vala.