diff options
Diffstat (limited to 'restore.in')
-rw-r--r-- | restore.in | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # This file is part of BEAM -# Copyright (C) 2012 Sergey Poznyakoff +# Copyright (C) 2012-2014 Sergey Poznyakoff # # BEAM is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -121,9 +121,9 @@ if [ -z "$week" ]; then fi if [ -z "$round" ]; then - round=$(find $backup_archive_dir \ + round=$(beam_exec find $backup_local_archive_dir \ -regex '.*-'$week'-[0-9][0-9]*-[0-9][0-9]*\..*' \ - -printf '%f\n' | + -printf '%f\\n' | sed 's/.*-'$week'-\([0-9][0-9]*\)-[0-9][0-9]*\..*/\1/' | sort +0 -1 | tail -1) @@ -131,9 +131,9 @@ if [ -z "$round" ]; then fi if [ -z "$level" ]; then - level=$(find $backup_archive_dir \ + level=$(beam_exec find $backup_local_archive_dir \ -regex '.*-'$week-$round'-[0-9][0-9]*\..*' \ - -printf '%f\n' | + -printf '%f\\n' | sed 's/.*-'$week-$round'-\([0-9][0-9]*\)\..*/\1/' | sort +0 -1 | tail -1) |