From 2ee3e3c3225ae2bf441d142edf5e30e313c283dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 30 Dec 2024 13:56:24 +0100 Subject: [PATCH] backup: Allow selecting path to back up. --- backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup b/backup index 4cb5e82..b9d3013 100755 --- a/backup +++ b/backup @@ -1,2 +1,2 @@ #!/bin/bash -rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/usr/local/share/music/*"} $1 +rsync -aAXv --delete "$1" --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/media/music/*"} "$2"