Commit 52357cbc authored by Nono's avatar Nono

creation of $remote_mount var to avoid duplication

parent 4467668b
......@@ -14,6 +14,7 @@ remote_user="backupuser"
remote_ip="1.1.1.1"
remote_port="22"
remote_dir="/remote/backup/path/"
remote_mount="${remote_user}@${remote_ip}:${remote_dir} ${mount} -p ${remote_port}"
# Setting this, so the repo does not need to be given on the commandline:
export BORG_REPO=${repo}
......@@ -31,8 +32,8 @@ if mount | grep ${mount} > /dev/null;
then
info "${mount} already mounted";
else
info "Mount: sshfs ${remote_user}@${remote_ip}:${remote_dir} ${mount} -p ${remote_port}"
sshfs ${remote_user}@${remote_ip}:${remote_dir} ${mount} -p ${remote_port}
info "Mount: sshfs ${remote_mount}"
sshfs ${remote_mount}
retour1=$?
if [ $retour1 -eq 0 ];
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment