commit 172fce8e519b25267000d6c069ef0dcb9ef33180
parent f0548c262e0997a79c65641a524ec4d0a9e8b758
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sun, 5 Sep 2021 22:01:41 -0700
Default to /mnt as backup directory
This should lower the chances of doing something dumb, such as, for
instance, using /tmp and removing sockets for your graphics, sound,
9p, and music servers.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/local/bin/bin/backup3 b/local/bin/bin/backup3
@@ -3,4 +3,4 @@
# License: GPLv3
# Third revision of a simple backup script
-exec openrsync -av --del /home/ "$@"
+exec openrsync -av --del /home/ "${@:-/mnt}"