diff options
| author | 2016-07-24 23:45:48 +0200 | |
|---|---|---|
| committer | 2016-07-24 23:45:48 +0200 | |
| commit | e4fa4a310d8dacb5d8bf95a8bf768cc6bfa82345 (patch) | |
| tree | e0796904e16e3b4b6cf59c334758b168831bd3f7 | |
| parent | Do preparation process earlier and independent on backup definition process (diff) | |
| download | backuper-e4fa4a310d8dacb5d8bf95a8bf768cc6bfa82345.tar.xz | |
Fix path resolving
| -rw-r--r-- | backuper.sh | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/backuper.sh b/backuper.sh index 9812e71..004d970 100644 --- a/backuper.sh +++ b/backuper.sh @@ -29,6 +29,7 @@ EXCLUDE=""  STORE=""  AFTER=""  FILE_TYPE="" +DST=""  ## Pipeline variables  PID_GENERATE="" @@ -151,7 +152,8 @@ run() {  store_file() {  	[ -z "$1" ] && error "Specify destination" -	store "sh -c 'cat > ${1}/${FILENAME}'" +	DST="$1" +	store "sh -c 'cat > ${DST}/${FILENAME}'"  }  ## Internal functions | 
