diff options
Diffstat (limited to '')
-rwxr-xr-x | backup_db.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backup_db.sh b/backup_db.sh index d35f921..e99243d 100755 --- a/backup_db.sh +++ b/backup_db.sh @@ -75,11 +75,11 @@ function check_borg_repo { repo_path="$userserver:$backupdir/$serverdir/$repo" fi #check if repo exists - $nice $borg_local_path list --remote-path "$borg_remote_path" "$repo_path" > /dev/null 2>&1 + $nice $borg_local_path list "$repo_path" > /dev/null 2>&1 if [ $? -ne 0 ] then # create repo if not exists - $nice $borg_local_path init --remote-path "$borg_remote_path" --encryption "$borg_encryption" "$repo_path" + $nice $borg_local_path init --encryption "$borg_encryption" "$repo_path" if [ $? -ne 0 ] then $echo "problem in borg init $repo" @@ -107,7 +107,7 @@ function backup_db { repo_path="$userserver:$backupdir/$serverdir/$repo::{now:$default_timestamp}" fi ret=0 - $nice $borg_local_path create --remote-path "$borg_remote_path" --one-file-system --compression "$borg_compression" "$repo_path" . + $nice $borg_local_path create --one-file-system --compression "$borg_compression" "$repo_path" . ret=$? if [ $ret -ne 0 ] then |