Public Member Functions | |
| Snapshot (string dir_path, bool btrfs_snapshot, SnapshotRepo _repo) | |
| void | add_tag (string tag) |
| void | remove_tag (string tag) |
| bool | has_tag (string tag) |
| void | read_control_file () |
| void | read_exclude_list () |
| void | read_fstab_file () |
| void | read_crypttab_file () |
| void | update_control_file () |
| void | remove_control_file () |
| bool | has_subvolumes () |
| bool | remove (bool wait) |
| bool | remove_rsync (bool wait) |
| bool | remove_btrfs () |
| void | mark_for_deletion () |
| void | parse_log_file () |
Static Public Member Functions | |
| static Snapshot | write_control_file (string snapshot_path, DateTime dt_created, string root_uuid, string distro_full_name, string tag, string comments, int64 item_count, bool is_btrfs, bool is_live, SnapshotRepo repo, bool silent=false) |
Public Attributes | |
| string | path = "" |
| string | name = "" |
| DateTime | date |
| string | sys_uuid = "" |
| string | sys_distro = "" |
| string | app_version = "" |
| string | description = "" |
| int64 | file_count = 0 |
| Gee.ArrayList< string > | tags |
| Gee.ArrayList< string > | exclude_list |
| Gee.HashMap< string, Subvolume > | subvolumes |
| Gee.ArrayList< FsTabEntry > | fstab_list |
| Gee.ArrayList< CryptTabEntry > | cryttab_list |
| bool | valid = true |
| bool | live = false |
| bool | marked_for_deletion = false |
| LinuxDistro | distro |
| SnapshotRepo | repo |
| bool | btrfs_mode = false |
| Gee.HashMap< string, string > | paths |
| string | mount_path_root = "" |
| string | mount_path_home = "" |
| DeleteFileTask | delete_file_task |
Properties | |
| string | date_formatted [get] |
| string | rsync_log_file [get] |
| string | rsync_changes_log_file [get] |
| string | rsync_restore_log_file [get] |
| string | rsync_restore_changes_log_file [get] |
| string | exclude_file_for_backup [get] |
| string | exclude_file_for_restore [get] |
| string | taglist [get, set] |
| string | taglist_short [get] |
| Gee.ArrayList< Subvolume > | subvolumes_sorted [get] |
Definition at line 34 of file Snapshot.vala.
|
inline |
Definition at line 63 of file Snapshot.vala.
References btrfs_mode, date, delete_file_task, DeleteFileTask.DeleteFileTask(), description, Error, exclude_list, fstab_list, TeeJee.Logging.log_error(), name, path, paths, read_control_file(), read_crypttab_file(), read_exclude_list(), read_fstab_file(), repo, subvolumes, and tags.
Referenced by SnapshotRepo.load_snapshots(), and write_control_file().
|
inline |
Definition at line 167 of file Snapshot.vala.
References tags, and update_control_file().
|
inline |
Definition at line 440 of file Snapshot.vala.
References fstab_list, and FsTabEntry.options.
Referenced by Main.mount_target_devices().
|
inline |
Definition at line 183 of file Snapshot.vala.
References tags.
|
inline |
Definition at line 563 of file Snapshot.vala.
References TeeJee.FileSystem.file_delete(), TeeJee.FileSystem.file_exists(), TeeJee.FileSystem.file_write(), marked_for_deletion, and path.
|
inline |
Definition at line 576 of file Snapshot.vala.
References rsync_log_file, and RsyncTask.RsyncTask().
|
inline |
Definition at line 190 of file Snapshot.vala.
References app_version, date, description, TeeJee.FileSystem.dir_exists(), distro, Error, file_count, TeeJee.FileSystem.file_exists(), LinuxDistro.get_dist_info(), TeeJee.JsonHelper.json_get_bool(), TeeJee.JsonHelper.json_get_string(), TeeJee.JsonHelper.json_get_uint64(), live, TeeJee.Logging.log_error(), marked_for_deletion, SnapshotRepo.mount_path, SnapshotRepo.mount_paths, path, TeeJee.FileSystem.path_combine(), paths, repo, Subvolume.Subvolume(), subvolumes, sys_distro, sys_uuid, taglist, and valid.
Referenced by Snapshot().
|
inline |
Definition at line 330 of file Snapshot.vala.
References btrfs_mode, cryttab_list, path, and TeeJee.FileSystem.path_combine().
Referenced by Snapshot().
|
inline |
Definition at line 293 of file Snapshot.vala.
References btrfs_mode, exclude_list, TeeJee.FileSystem.file_read(), path, and valid.
Referenced by Snapshot().
|
inline |
Definition at line 319 of file Snapshot.vala.
References btrfs_mode, fstab_list, path, and TeeJee.FileSystem.path_combine().
Referenced by Snapshot().
|
inline |
Definition at line 464 of file Snapshot.vala.
References btrfs_mode, TeeJee.FileSystem.dir_exists(), path, remove_btrfs(), and remove_rsync().
Referenced by AppConsole.delete_snapshot().
|
inline |
Definition at line 519 of file Snapshot.vala.
References _, TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), name, path, paths, and subvolumes.
Referenced by remove().
|
inline |
Definition at line 390 of file Snapshot.vala.
References TeeJee.FileSystem.file_delete(), and path.
|
inline |
Definition at line 482 of file Snapshot.vala.
References _, delete_file_task, AsyncTask.execute(), Main.first_snapshot_count, TeeJee.GtkHelper.gtk_do_events(), TeeJee.Logging.log_msg(), name, path, AsyncTask.progress, TeeJee.System.sleep(), AsyncTask.stat_time_remaining, and AsyncTask.status.
Referenced by remove().
|
inline |
Definition at line 175 of file Snapshot.vala.
References tags, and update_control_file().
|
inline |
Definition at line 341 of file Snapshot.vala.
References btrfs_mode, description, Error, live, TeeJee.Logging.log_error(), path, subvolumes, and taglist.
Referenced by add_tag(), SnapshotRow.build_ui(), Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot_with_btrfs(), and remove_tag().
|
inlinestatic |
Definition at line 396 of file Snapshot.vala.
References _, Error, TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), repo, and Snapshot().
Referenced by Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot_with_btrfs(), and Main.create_snapshot_with_rsync().
| string Snapshot.app_version = "" |
Definition at line 41 of file Snapshot.vala.
Referenced by read_control_file().
| bool Snapshot.btrfs_mode = false |
Definition at line 56 of file Snapshot.vala.
Referenced by SnapshotRow.build_meta_text(), read_crypttab_file(), read_exclude_list(), read_fstab_file(), remove(), Snapshot(), and update_control_file().
| Gee.ArrayList<CryptTabEntry> Snapshot.cryttab_list |
Definition at line 48 of file Snapshot.vala.
Referenced by Main.init_mount_list(), and read_crypttab_file().
| DateTime Snapshot.date |
Definition at line 38 of file Snapshot.vala.
Referenced by Main.create_snapshot(), SnapshotRepo.get_snapshots_by_tag(), SnapshotRepo.load_snapshots(), read_control_file(), and Snapshot().
| DeleteFileTask Snapshot.delete_file_task |
Definition at line 61 of file Snapshot.vala.
Referenced by remove_rsync(), and Snapshot().
| string Snapshot.description = "" |
Definition at line 42 of file Snapshot.vala.
Referenced by SnapshotRow.build_ui(), AppConsole.list_snapshots(), read_control_file(), Main.restore_snapshot(), Snapshot(), and update_control_file().
| LinuxDistro Snapshot.distro |
Definition at line 52 of file Snapshot.vala.
Referenced by Main.init_boot_options(), read_control_file(), and BootOptionsBox.refresh_options().
| Gee.ArrayList<string> Snapshot.exclude_list |
Definition at line 45 of file Snapshot.vala.
Referenced by read_exclude_list(), and Snapshot().
| int64 Snapshot.file_count = 0 |
Definition at line 43 of file Snapshot.vala.
Referenced by read_control_file(), and Main.restore_other_gui().
| Gee.ArrayList<FsTabEntry> Snapshot.fstab_list |
Definition at line 47 of file Snapshot.vala.
Referenced by has_subvolumes(), Main.init_mount_list(), read_fstab_file(), and Snapshot().
| bool Snapshot.live = false |
Definition at line 50 of file Snapshot.vala.
Referenced by SnapshotRow.build_ui(), read_control_file(), and update_control_file().
| bool Snapshot.marked_for_deletion = false |
Definition at line 51 of file Snapshot.vala.
Referenced by SnapshotRow.build_ui(), mark_for_deletion(), read_control_file(), MainWindow.restore(), and Main.restore_snapshot().
| string Snapshot.mount_path_home = "" |
Definition at line 59 of file Snapshot.vala.
| string Snapshot.mount_path_root = "" |
Definition at line 58 of file Snapshot.vala.
| string Snapshot.name = "" |
Definition at line 37 of file Snapshot.vala.
Referenced by Main.create_snapshot_for_tag(), Main.create_snapshot_with_rsync(), Main.get_space_needed_for_rsync_snapshot(), AppConsole.list_snapshots(), remove_btrfs(), remove_rsync(), Main.restore_snapshot(), and Snapshot().
| string Snapshot.path = "" |
Definition at line 36 of file Snapshot.vala.
Referenced by Main.add_app_exclude_entries(), Main.create_exclude_list_for_restore(), Main.create_snapshot_with_rsync(), Main.get_space_needed_for_rsync_snapshot(), mark_for_deletion(), read_control_file(), read_crypttab_file(), read_exclude_list(), read_fstab_file(), remove(), remove_btrfs(), remove_control_file(), remove_rsync(), Main.restore_execute_rsync(), Main.restore_other_gui(), Snapshot(), and update_control_file().
| Gee.HashMap<string,string> Snapshot.paths |
Definition at line 57 of file Snapshot.vala.
Referenced by read_control_file(), remove_btrfs(), and Snapshot().
| SnapshotRepo Snapshot.repo |
Definition at line 53 of file Snapshot.vala.
Referenced by read_control_file(), Snapshot(), and write_control_file().
| Gee.HashMap<string,Subvolume> Snapshot.subvolumes |
Definition at line 46 of file Snapshot.vala.
Referenced by SnapshotRow.build_meta_text(), Main.create_pre_restore_snapshot_btrfs(), Main.get_restore_messages(), RestoreWindow.go_first(), RestoreWindow.go_prev(), read_control_file(), remove_btrfs(), Main.restore_execute_btrfs(), Snapshot(), and update_control_file().
| string Snapshot.sys_distro = "" |
Definition at line 40 of file Snapshot.vala.
Referenced by SnapshotRow.build_meta_text(), and read_control_file().
| string Snapshot.sys_uuid = "" |
Definition at line 39 of file Snapshot.vala.
Referenced by read_control_file().
| Gee.ArrayList<string> Snapshot.tags |
Definition at line 44 of file Snapshot.vala.
Referenced by add_tag(), has_tag(), remove_tag(), and Snapshot().
| bool Snapshot.valid = true |
Definition at line 49 of file Snapshot.vala.
Referenced by SnapshotRepo.load_snapshots(), read_control_file(), and read_exclude_list().
|
get |
Definition at line 95 of file Snapshot.vala.
Referenced by SnapshotRow.build_ui(), and Main.create_pre_restore_snapshot_btrfs().
|
get |
Definition at line 125 of file Snapshot.vala.
|
get |
Definition at line 131 of file Snapshot.vala.
|
get |
Definition at line 107 of file Snapshot.vala.
|
get |
Definition at line 101 of file Snapshot.vala.
Referenced by parse_log_file().
|
get |
Definition at line 119 of file Snapshot.vala.
|
get |
Definition at line 113 of file Snapshot.vala.
Referenced by RestoreWindow.initialize_tab().
|
get |
Definition at line 449 of file Snapshot.vala.
|
getset |
Definition at line 139 of file Snapshot.vala.
Referenced by read_control_file(), and update_control_file().
|
get |
Definition at line 157 of file Snapshot.vala.
Referenced by SnapshotRow.build_meta_text(), and AppConsole.list_snapshots().