summaryrefslogtreecommitdiff
path: root/bin/locmaint
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-08-24 14:50:36 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-08-24 14:50:36 -0700
commitbf4f901fd0697424f68a60745c3250d0e8f9f84c (patch)
treef2e8c69d4e9a0bae120956b11ce2dee2406dd321 /bin/locmaint
parent3cde077c984c3ba453f7f83254fa268524e3dc00 (diff)
downloaddotfiles-bf4f901fd0697424f68a60745c3250d0e8f9f84c.tar.gz
qualify a bit more find commands run on athena
Diffstat (limited to 'bin/locmaint')
-rwxr-xr-xbin/locmaint4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/locmaint b/bin/locmaint
index 7f99d6cc..682a4b12 100755
--- a/bin/locmaint
+++ b/bin/locmaint
@@ -331,7 +331,7 @@ sub do_coldbkup {
} elsif (m|^/srv/git/repositories/(.+)\.git$|) {
{ uri => "athena:$1", dir => "$1.git" }
}
- } `ssh athena find /srv/git/repositories -name "*.git" 2>/dev/null`;
+ } `ssh athena find /srv/git/repositories -name "*.git" -type d 2>/dev/null`;
backup_repo($_->{uri}, catfile($gitbk, "athena", $_->{dir}))
for @athena_repos;
@@ -339,7 +339,7 @@ sub do_coldbkup {
mkdir catfile($gitbk, "athena_gcrypt");
my @gcrypt_repos
= map { m|^/srv/gcrypt/(.+)$|; { uri => "athenag:$1", dir => "$1" } }
- `ssh athena find /srv/gcrypt -name "*.git"`;
+ `ssh athena find /srv/gcrypt -name "*.git" -type d`;
chomp @gcrypt_repos;
backup_repo($_->{uri}, catfile($gitbk, "athena_gcrypt", $_->{dir}))
for @gcrypt_repos;