diff --git a/src/restore.sh b/src/restore.sh index 13f5cf6..0556383 100755 --- a/src/restore.sh +++ b/src/restore.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VOLUMES=$(find /backup -maxdepth 1 -type d -printf '%f\n' | tail -n +2) +VOLUMES=$(find /tmp -maxdepth 1 -type d -exec basename {} \; | tail -n +2) #loop volumes for VOLUME in $VOLUMES; do @@ -9,3 +9,4 @@ for VOLUME in $VOLUMES; do done +find /tmp -maxdepth 1 -type d -exec basename {} \; | cut \ No newline at end of file