From 909ee62671b4218dc89e366af36cadab6e4a1fd2 Mon Sep 17 00:00:00 2001 From: Himadri Sekhar Basu <41947504+hsbasu@users.noreply.github.com> Date: Tue, 5 Nov 2024 19:08:28 +0530 Subject: [PATCH] Update interfaces of different components (#90) - Update copyright year to 2024 - Add ui option to give name to app backups - Add separate ui option for data synchronize and backup modes - Add option to pass user defined arguments to rsync during data backup - Add ui option for scheduling data backups. - Add ui options to backup at specified time or at specfied interval - Add option to retain number of backups similar to timeshift --- src/LeaptimeManager/ui/MainWindow.ui | 16 +- src/LeaptimeManager/ui/app_backup.ui | 52 ++++- src/LeaptimeManager/ui/logger.ui | 2 +- src/LeaptimeManager/ui/user_data.ui | 317 ++++++++++++++++++++++++++- 4 files changed, 358 insertions(+), 29 deletions(-) diff --git a/src/LeaptimeManager/ui/MainWindow.ui b/src/LeaptimeManager/ui/MainWindow.ui index 714529d..b1464e5 100644 --- a/src/LeaptimeManager/ui/MainWindow.ui +++ b/src/LeaptimeManager/ui/MainWindow.ui @@ -1,7 +1,7 @@ + True False start 5 - 5 - top + 5 + + + True + False + end + Name: + True + + + + + + 0 + 0 + + + + + True + True + True + Enter name of the backup. + + + 1 + 0 + + True False + end Please select a location to save the software selection (.list file): + True - False - True - 0 + 0 + 1 True False + True select-folder False - False - True - 1 + 1 + 1 @@ -254,6 +285,7 @@ Author: Himadri Sekhar Basu True False + True False diff --git a/src/LeaptimeManager/ui/logger.ui b/src/LeaptimeManager/ui/logger.ui index 76cddfc..5532374 100644 --- a/src/LeaptimeManager/ui/logger.ui +++ b/src/LeaptimeManager/ui/logger.ui @@ -1,7 +1,7 @@ + True False @@ -93,7 +95,7 @@ Author: Himadri Sekhar Basu True True - GIve the the backup a name to identify individual backups. + Give the the backup a name to identify individual backups. True Enter the backup name. @@ -166,7 +168,7 @@ Author: Himadri Sekhar Basu True False end - Method: + Mode: True @@ -177,6 +179,40 @@ Author: Himadri Sekhar Basu 3 + + + True + False + start + 0 + 0 + + Backup + Synchronize + + + + 1 + 3 + + + + + True + False + Select method of backup. Tarball creates compressed archive file, while rsync copies files to another directory keeping the properties and attribures intact. + end + Method: + True + + + + + + 0 + 4 + + True @@ -191,7 +227,7 @@ Author: Himadri Sekhar Basu 1 - 3 + 4 @@ -206,12 +242,13 @@ Author: Himadri Sekhar Basu 0 - 4 + 5 False + Select format for tarball. Only available with tarball method. start 0 0 @@ -224,7 +261,7 @@ Author: Himadri Sekhar Basu 1 - 4 + 5 @@ -240,7 +277,7 @@ Author: Himadri Sekhar Basu 0 - 5 + 6 @@ -253,7 +290,269 @@ Author: Himadri Sekhar Basu 1 - 5 + 6 + + + + + True + False + Enter options separated by space. Only available for Rsync. + end + Extra Arguments: + True + + + + + + 0 + 7 + + + + + True + True + Enter arguments to pass to rsync, separated by a single space. + True + Enter arguments to be passed to rsync. + + + 1 + 7 + + + + + True + False + end + Schedule: + True + + + + + + 0 + 8 + + + + + True + False + vertical + + + True + False + + + Specific Time + True + True + False + True + True + + + False + True + 0 + + + + + At Interval + True + True + False + True + specific_time_btn + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + + + True + False + Select Time: + + + + + + False + True + 0 + + + + + + + + False + True + 1 + + + + + + False + 5 + + + Hourly + True + True + False + start + right + True + + + 1 + 0 + + + + + Daily + True + True + False + start + right + True + + + 2 + 0 + + + + + Weekly + True + True + False + start + right + True + + + 3 + 0 + + + + + Monthly + True + True + False + start + right + True + + + 4 + 0 + + + + + True + False + end + Keep: + True + + + + + + 0 + 1 + + + + + True + True + number + + + 1 + 1 + + + + + True + True + number + + + 2 + 1 + + + + + True + True + number + + + 3 + 1 + + + + + True + True + number + + + 4 + 1 + + + + + + + + False + True + 2 + + + + + 1 + 8