backup: Allow selecting path to back up.

This commit is contained in:
Nicolás A. Ortega Froysa 2024-12-30 13:56:24 +01:00
parent 6e60755a15
commit 2ee3e3c322

2
backup
View File

@ -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"