summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/backup-site2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydractl/backup-site b/share/hydractl/backup-site
index 1c124aa..225ae19 100755
--- a/share/hydractl/backup-site
+++ b/share/hydractl/backup-site
@@ -41,7 +41,7 @@ if [ "$SITE" == "git" ] || [ "$SITE" == "svn" ]; then
elif [ "$SITE" == "debian" ]; then
LOCATION="/var/reprepro"
elif [ "$SITE" == "wiki" ]; then
- LOCATION="/var/www/data/pmwiki-*"
+ LOCATION="`ls -1 /var/www/data | grep pmwiki | sort -n | head`"
else
LOCATION="$SITES/$SITE"
fi