commit 0a238814f1fcd78d197366b6109c042d5bae8f0b
parent 76054153780324fdc443c363248c144aec787750
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Thu, 27 Apr 2023 20:28:09 -0700
Allow comments in backup list
Comments are hashes ('#') prefixed by zero or more blanks.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srvbackup b/srvbackup
@@ -35,7 +35,7 @@ update() (
IFS='
'
cd /
- pax -w -uf "$backup" $(</etc/backup/list)
+ pax -w -uf "$backup" $(sed '/^[ ]*#/d' < /etc/backup/list)
)
if test $# -eq 0; then