From 56892356dbfed5a0fc39ea817120390c4f05c958 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Wed, 5 Jun 2024 20:20:15 -0400 Subject: [PATCH] Update backup rofi script to use systemd services --- README.org | 8 ++++---- snapborg/.scripts/backup.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index c01df47..0376d49 100644 --- a/README.org +++ b/README.org @@ -7991,16 +7991,16 @@ main() { help_menu ;; --backup-root-to-hdd) - kitty --hold /home/sravan/.scripts/backup_root_to_hdd.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@root_hdd.service && journalctl -f -u snapborg-backup@root_hdd.service" ;; --backup-home-to-hdd) - kitty --hold /home/sravan/.scripts/backup_home_to_hdd.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@home_hdd.service && journalctl -f -u snapborg-backup@home_hdd.service" ;; --backup-root-to-fileserver) - kitty --hold /home/sravan/.scripts/backup_root_to_fileserver.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@root_fileserver.service && journalctl -f -u snapborg-backup@root_fileserver.service" ;; --backup-home-to-fileserver) - kitty --hold /home/sravan/.scripts/backup_home_to_fileserver.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@home_fileserver.service && journalctl -f -u snapborg-backup@home_fileserver.service" ;; --rofi) rofi_menu diff --git a/snapborg/.scripts/backup.sh b/snapborg/.scripts/backup.sh index 35554aa..71ccb4f 100755 --- a/snapborg/.scripts/backup.sh +++ b/snapborg/.scripts/backup.sh @@ -33,16 +33,16 @@ main() { help_menu ;; --backup-root-to-hdd) - kitty --hold /home/sravan/.scripts/backup_root_to_hdd.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@root_hdd.service && journalctl -f -u snapborg-backup@root_hdd.service" ;; --backup-home-to-hdd) - kitty --hold /home/sravan/.scripts/backup_home_to_hdd.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@home_hdd.service && journalctl -f -u snapborg-backup@home_hdd.service" ;; --backup-root-to-fileserver) - kitty --hold /home/sravan/.scripts/backup_root_to_fileserver.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@root_fileserver.service && journalctl -f -u snapborg-backup@root_fileserver.service" ;; --backup-home-to-fileserver) - kitty --hold /home/sravan/.scripts/backup_home_to_fileserver.sh + kitty --hold bash -c "sudo systemctl start snapborg-backup@home_fileserver.service && journalctl -f -u snapborg-backup@home_fileserver.service" ;; --rofi) rofi_menu