Public Member Functions | |
| SnapshotRepo. | from_path (string path, Gtk.Window? parent_win, bool _btrfs_mode) |
| SnapshotRepo. | from_device (Device dev, Gtk.Window? parent_win, bool btrfs_repo) |
| SnapshotRepo. | from_uuid (string uuid, Gtk.Window? parent_win, bool btrfs_repo) |
| SnapshotRepo. | from_null () |
| bool | unlock_and_mount_devices () |
| string | unlock_and_mount_device (Device device_to_mount, string path_to_mount) |
| Device? | unlock_encrypted_device (Device luks_device) |
| bool | load_snapshots () |
| Gee.ArrayList< Snapshot?> | get_snapshots_by_tag (string tag="") |
| Snapshot? | get_latest_snapshot (string tag, string sys_uuid) |
| Snapshot? | get_oldest_snapshot (string tag, string sys_uuid) |
| void | check_status () |
| bool | available () |
| bool | has_btrfs_system () |
| bool | has_snapshots () |
| bool | has_space (uint64 needed=0) |
| void | print_status () |
| void | auto_remove () |
| void | remove_untagged () |
| void | remove_marked_for_deletion () |
| void | remove_invalid () |
| bool | remove_all () |
| bool | remove_sync_dir () |
| bool | remove_timeshift_dir () |
| void | create_symlinks () |
| void | cleanup_symlink_dir (string tag) |
Public Attributes | |
| Device | device = null |
| Device | device_home = null |
| string | mount_path = "" |
| Gee.HashMap< string, string > | mount_paths |
| bool | btrfs_mode = false |
| Gee.ArrayList< Snapshot?> | snapshots |
| Gee.ArrayList< Snapshot?> | invalid_snapshots |
| string | status_message = "" |
| string | status_details = "" |
| SnapshotLocationStatus | status_code |
| bool | last_snapshot_failed_space = false |
Properties | |
| string | timeshift_path [get] |
| string | snapshots_path [get] |
Private Member Functions | |
| void | init_from_device () |
| bool | delete_directory (string dir_path) |
| void | delete_directory_thread () |
Static Private Member Functions | |
| static ? Device | build_synthetic_device_for_path (string path) |
Private Attributes | |
| Gtk.? Window | parent_window = null |
| bool | thr_success = false |
| bool | thr_running = false |
| string | thr_args1 = "" |
Definition at line 32 of file SnapshotRepo.vala.
|
inline |
Definition at line 686 of file SnapshotRepo.vala.
References _, App, Main.count_boot, Main.count_daily, Main.count_hourly, Main.count_monthly, Main.count_weekly, get_snapshots_by_tag(), last_snapshot_failed_space, TeeJee.Logging.log_debug(), TeeJee.Logging.log_msg(), remove_invalid(), remove_marked_for_deletion(), and remove_untagged().
Referenced by Main.create_snapshot().
|
inline |
Definition at line 533 of file SnapshotRepo.vala.
References _, App, Main.backup_uuid, btrfs_mode, device, has_btrfs_system(), TeeJee.Logging.log_debug(), status_code, status_details, and status_message.
Referenced by check_status(), MainWindow.create_snapshot(), Main.create_snapshot_for_tag(), MainWindow.delete_selected(), BackupWindow.go_first(), BackupWindow.go_prev(), MainWindow.init_delayed(), MainWindow.on_close_request(), SnapshotListBox.refresh(), Main.save_app_config(), AppConsole.select_snapshot_device(), Main.try_select_default_device_for_backup(), BackupWindow.validate_current_tab(), and SetupWizardWindow.validate_current_tab().
|
inlinestaticprivate |
Definition at line 90 of file SnapshotRepo.vala.
References Device.Device(), and TeeJee.ProcessHelper.exec_sync().
Referenced by from_path().
|
inline |
Definition at line 491 of file SnapshotRepo.vala.
References _, App, Main.app_mode, available(), Device.device, device, has_snapshots(), has_space(), last_snapshot_failed_space, TeeJee.Logging.log_debug(), mount_path, status_code, status_details, and status_message.
Referenced by BackupDeviceBox.check_backup_location(), Main.check_backup_location(), from_path(), init_from_device(), print_status(), and MainWindow.update_statusbar().
|
inline |
Definition at line 998 of file SnapshotRepo.vala.
References _, Error, TeeJee.Logging.log_error(), and snapshots_path.
Referenced by create_symlinks().
|
inline |
Definition at line 970 of file SnapshotRepo.vala.
References _, cleanup_symlink_dir(), Error, TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), snapshots, and snapshots_path.
Referenced by Main.create_snapshot().
|
inlineprivate |
Definition at line 933 of file SnapshotRepo.vala.
References delete_directory_thread(), Error, TeeJee.GtkHelper.gtk_do_events(), TeeJee.Logging.log_error(), thr_args1, thr_running, and thr_success.
Referenced by remove_all(), remove_sync_dir(), and remove_timeshift_dir().
|
inlineprivate |
Definition at line 956 of file SnapshotRepo.vala.
References _, TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), thr_args1, thr_running, and thr_success.
Referenced by delete_directory().
|
inline |
Definition at line 126 of file SnapshotRepo.vala.
References init_from_device(), invalid_snapshots, TeeJee.Logging.log_debug(), mount_paths, and snapshots.
Referenced by BackupDeviceBox.change_backup_device(), Main.initialize_repo(), AppConsole.select_snapshot_device(), and Main.try_select_default_device_for_backup().
|
inline |
Definition at line 166 of file SnapshotRepo.vala.
References invalid_snapshots, TeeJee.Logging.log_debug(), mount_paths, and snapshots.
Referenced by MainWindow.settings_changed(), and Main.try_select_default_device_for_backup().
|
inline |
Definition at line 54 of file SnapshotRepo.vala.
References _, build_synthetic_device_for_path(), check_status(), Device.device, device, TeeJee.FileSystem.format_file_size(), Device.free_bytes, Device.get_disk_space_using_df(), invalid_snapshots, TeeJee.Logging.log_debug(), mount_paths, and snapshots.
Referenced by BackupDeviceBox.try_change_smb_share().
|
inline |
Definition at line 142 of file SnapshotRepo.vala.
References Device.Device(), device, Device.get_device_by_uuid(), init_from_device(), invalid_snapshots, TeeJee.Logging.log_debug(), mount_paths, and snapshots.
Referenced by MainWindow.init_delayed(), Main.initialize_repo(), SetupWizardWindow.probe_timeshift_snapshot_count(), SetupWizardWindow.probe_timeshift_snapshots_from_mounts(), and MainWindow.settings_changed().
|
inline |
Definition at line 461 of file SnapshotRepo.vala.
References get_snapshots_by_tag().
Referenced by Main.create_snapshot(), Main.create_snapshot_with_rsync(), and Main.get_space_needed_for_rsync_snapshot().
|
inline |
Definition at line 475 of file SnapshotRepo.vala.
References get_snapshots_by_tag().
|
inline |
Definition at line 443 of file SnapshotRepo.vala.
References Snapshot.date, and snapshots.
Referenced by auto_remove(), get_latest_snapshot(), and get_oldest_snapshot().
|
inline |
Definition at line 571 of file SnapshotRepo.vala.
References _, btrfs_mode, TeeJee.FileSystem.dir_exists(), TeeJee.Logging.log_debug(), mount_paths, TeeJee.FileSystem.path_combine(), status_code, status_details, and status_message.
Referenced by available().
|
inline |
Definition at line 591 of file SnapshotRepo.vala.
References TeeJee.Logging.log_debug(), and snapshots.
Referenced by check_status(), MainWindow.delete_selected(), Main.save_app_config(), AppConsole.select_snapshot(), and AppConsole.start_application().
|
inline |
Definition at line 599 of file SnapshotRepo.vala.
References _, Device.device, device, Main.first_snapshot_size, TeeJee.FileSystem.format_file_size(), Device.free_bytes, last_snapshot_failed_space, TeeJee.Logging.log_debug(), Main.MIN_FREE_SPACE, Device.query_disk_space(), snapshots, status_code, status_details, and status_message.
Referenced by check_status(), Main.create_snapshot(), Main.create_snapshot_for_tag(), BackupWindow.go_first(), BackupWindow.go_prev(), MainWindow.on_close_request(), BackupWindow.validate_current_tab(), and SetupWizardWindow.validate_current_tab().
|
inlineprivate |
Definition at line 178 of file SnapshotRepo.vala.
References _, check_status(), Device.device, device, TeeJee.FileSystem.format_file_size(), Device.free_bytes, Device.get_device_by_uuid(), TeeJee.Logging.log_debug(), unlock_and_mount_devices(), and Device.uuid.
Referenced by from_device(), and from_uuid().
|
inline |
Definition at line 363 of file SnapshotRepo.vala.
References App, btrfs_mode, Snapshot.date, device, TeeJee.FileSystem.dir_exists(), Error, TeeJee.System.get_system_uptime_seconds(), invalid_snapshots, TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), Main.query_subvolume_info(), Snapshot.Snapshot(), snapshots, snapshots_path, Main.sys_root, Device.uuid, and Snapshot.valid.
Referenced by Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot(), MainWindow.mark_selected(), MainWindow.open_restore_flow(), SetupWizardWindow.probe_timeshift_snapshot_count(), SnapshotListBox.refresh(), remove_all(), remove_invalid(), remove_marked_for_deletion(), remove_untagged(), SetupWizardWindow.run_timeshift_import(), MainWindow.settings_changed(), and unlock_and_mount_devices().
|
inline |
Definition at line 663 of file SnapshotRepo.vala.
References _, btrfs_mode, check_status(), device, Device.device_name_with_parent, TeeJee.Logging.log_msg(), mount_path, status_details, status_message, and Device.uuid.
Referenced by AppConsole.start_application().
|
inline |
Definition at line 881 of file SnapshotRepo.vala.
References _, delete_directory(), TeeJee.FileSystem.dir_exists(), load_snapshots(), TeeJee.Logging.log_msg(), mount_path, remove_sync_dir(), snapshots, and timeshift_path.
|
inline |
Definition at line 864 of file SnapshotRepo.vala.
References _, invalid_snapshots, load_snapshots(), and TeeJee.Logging.log_msg().
Referenced by auto_remove().
|
inline |
Definition at line 845 of file SnapshotRepo.vala.
References _, load_snapshots(), TeeJee.Logging.log_msg(), and snapshots.
Referenced by auto_remove().
|
inline |
Definition at line 906 of file SnapshotRepo.vala.
References delete_directory(), TeeJee.FileSystem.dir_exists(), and mount_path.
Referenced by remove_all().
|
inline |
Definition at line 919 of file SnapshotRepo.vala.
References delete_directory(), TeeJee.FileSystem.dir_exists(), and timeshift_path.
|
inline |
Definition at line 824 of file SnapshotRepo.vala.
References _, load_snapshots(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_msg(), and snapshots.
Referenced by auto_remove().
|
inline |
Definition at line 301 of file SnapshotRepo.vala.
References btrfs_mode, Device.device, device, Device.is_encrypted_partition(), TeeJee.Logging.log_debug(), Device.mount(), unlock_encrypted_device(), and Device.uuid.
Referenced by unlock_and_mount_devices().
|
inline |
Definition at line 245 of file SnapshotRepo.vala.
References App, btrfs_mode, Subvolume.detect_subvolumes_for_system_by_path(), Device.device, device, device_home, load_snapshots(), TeeJee.Logging.log_debug(), mount_path, mount_paths, Main.mount_point_app, parent_window, TeeJee.FileSystem.path_combine(), unlock_and_mount_device(), and Device.uuid.
Referenced by init_from_device().
Definition at line 344 of file SnapshotRepo.vala.
References Device.device, TeeJee.Logging.log_debug(), Device.luks_unlock(), and parent_window.
Referenced by unlock_and_mount_device().
| bool SnapshotRepo.btrfs_mode = false |
Definition at line 38 of file SnapshotRepo.vala.
Referenced by available(), has_btrfs_system(), load_snapshots(), print_status(), Main.query_subvolume_info(), Main.try_select_default_device_for_backup(), unlock_and_mount_device(), and unlock_and_mount_devices().
| Device SnapshotRepo.device = null |
Definition at line 34 of file SnapshotRepo.vala.
Referenced by available(), BackupDeviceBox.change_backup_device(), check_status(), Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot_for_tag(), Main.create_snapshot_with_btrfs(), Main.create_snapshot_with_rsync(), from_path(), from_uuid(), Main.get_space_needed_for_rsync_snapshot(), has_space(), init_from_device(), Main.initialize_repo(), load_snapshots(), print_status(), Main.query_subvolume_ids(), Main.query_subvolume_quotas(), Main.restore_snapshot(), Main.save_app_config(), AppConsole.select_snapshot(), AppConsole.select_snapshot_device(), MainWindow.settings_changed(), Main.try_select_default_device_for_backup(), unlock_and_mount_device(), unlock_and_mount_devices(), Main.update_partitions(), BackupDeviceBox.update_selected_rows(), and MainWindow.update_statusbar().
| Device SnapshotRepo.device_home = null |
Definition at line 35 of file SnapshotRepo.vala.
Referenced by Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot_with_btrfs(), Main.query_subvolume_ids(), Main.query_subvolume_quotas(), and unlock_and_mount_devices().
| Gee.ArrayList<Snapshot?> SnapshotRepo.invalid_snapshots |
Definition at line 41 of file SnapshotRepo.vala.
Referenced by from_device(), from_null(), from_path(), from_uuid(), load_snapshots(), and remove_invalid().
| bool SnapshotRepo.last_snapshot_failed_space = false |
Definition at line 46 of file SnapshotRepo.vala.
Referenced by auto_remove(), check_status(), and has_space().
| string SnapshotRepo.mount_path = "" |
Definition at line 36 of file SnapshotRepo.vala.
Referenced by MainWindow.browse_selected(), check_status(), Main.create_snapshot_for_tag(), Main.create_snapshot_with_btrfs(), Main.create_snapshot_with_rsync(), Main.get_space_needed_for_rsync_snapshot(), print_status(), Snapshot.read_control_file(), remove_all(), remove_sync_dir(), and unlock_and_mount_devices().
| Gee.HashMap<string,string> SnapshotRepo.mount_paths |
Definition at line 37 of file SnapshotRepo.vala.
Referenced by Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot_with_btrfs(), from_device(), from_null(), from_path(), from_uuid(), has_btrfs_system(), Main.query_subvolume_id(), Main.query_subvolume_quota(), Snapshot.read_control_file(), Subvolume.remove(), Main.restore_snapshot(), Subvolume.Subvolume(), and unlock_and_mount_devices().
|
private |
Definition at line 49 of file SnapshotRepo.vala.
Referenced by unlock_and_mount_devices(), and unlock_encrypted_device().
| Gee.ArrayList<Snapshot?> SnapshotRepo.snapshots |
Definition at line 40 of file SnapshotRepo.vala.
Referenced by Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot_for_tag(), Main.create_snapshot_with_rsync(), create_symlinks(), AppConsole.delete_all_snapshots(), from_device(), from_null(), from_path(), from_uuid(), get_snapshots_by_tag(), Main.get_space_needed_for_rsync_snapshot(), has_snapshots(), has_space(), AppConsole.list_snapshots(), load_snapshots(), SetupWizardWindow.probe_timeshift_snapshot_count(), Main.query_subvolume_id(), Main.query_subvolume_quota(), AppConsole.read_stdin_snapshot(), SnapshotListBox.refresh(), remove_all(), remove_marked_for_deletion(), remove_untagged(), AppConsole.select_snapshot(), AppConsole.select_snapshot_device(), and MainWindow.update_statusbar().
| SnapshotLocationStatus SnapshotRepo.status_code |
Definition at line 45 of file SnapshotRepo.vala.
Referenced by available(), BackupDeviceBox.check_backup_location(), Main.check_backup_location(), check_status(), has_btrfs_system(), has_space(), BackupWindow.initialize_tab(), and MainWindow.update_statusbar().
| string SnapshotRepo.status_details = "" |
Definition at line 44 of file SnapshotRepo.vala.
Referenced by available(), BackupDeviceBox.check_backup_location(), Main.check_backup_location(), check_status(), Main.create_snapshot(), MainWindow.create_snapshot(), Main.create_snapshot_for_tag(), has_btrfs_system(), has_space(), BackupWindow.initialize_tab(), print_status(), MainWindow.update_statusbar(), BackupWindow.validate_current_tab(), and SetupWizardWindow.validate_current_tab().
| string SnapshotRepo.status_message = "" |
Definition at line 43 of file SnapshotRepo.vala.
Referenced by available(), BackupDeviceBox.check_backup_location(), Main.check_backup_location(), check_status(), Main.create_snapshot(), MainWindow.create_snapshot(), Main.create_snapshot_for_tag(), MainWindow.delete_selected(), has_btrfs_system(), has_space(), BackupWindow.initialize_tab(), MainWindow.on_close_request(), print_status(), MainWindow.update_statusbar(), BackupWindow.validate_current_tab(), and SetupWizardWindow.validate_current_tab().
|
private |
Definition at line 52 of file SnapshotRepo.vala.
Referenced by delete_directory(), and delete_directory_thread().
|
private |
Definition at line 51 of file SnapshotRepo.vala.
Referenced by delete_directory(), and delete_directory_thread().
|
private |
Definition at line 50 of file SnapshotRepo.vala.
Referenced by delete_directory(), and delete_directory_thread().
|
get |
Definition at line 237 of file SnapshotRepo.vala.
Referenced by MainWindow.browse_selected(), cleanup_symlink_dir(), Main.create_snapshot(), Main.create_snapshot_with_rsync(), create_symlinks(), Main.get_space_needed_for_rsync_snapshot(), and load_snapshots().
|
get |
Definition at line 204 of file SnapshotRepo.vala.
Referenced by remove_all(), and remove_timeshift_dir().