mirror of
https://github.com/deajan/obackup.git
synced 2024-11-15 04:03:41 +01:00
Rebuilt targets
This commit is contained in:
parent
fec66efe2a
commit
f0eee8897f
@ -7,7 +7,7 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2018 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2018 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.1-RC1
|
PROGRAM_VERSION=2.1-RC1
|
||||||
PROGRAM_BUILD=2018093005
|
PROGRAM_BUILD=2018093006
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
#### Execution order #__WITH_PARANOIA_DEBUG
|
#### Execution order #__WITH_PARANOIA_DEBUG
|
||||||
@ -4583,7 +4583,8 @@ function _RotateBackupsRemoteSSH {
|
|||||||
RemoteLogger "Command was [$cmd]." "WARN"
|
RemoteLogger "Command was [$cmd]." "WARN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$REMOTE_OPERATION" == "yes" ]; then
|
else
|
||||||
|
#elif [ "$REMOTE_OPERATION" == "yes" ]; then
|
||||||
cmd="cp -R \"$backup\" \"$backup.$PROGRAM.1\""
|
cmd="cp -R \"$backup\" \"$backup.$PROGRAM.1\""
|
||||||
RemoteLogger "Launching command [$cmd]." "DEBUG"
|
RemoteLogger "Launching command [$cmd]." "DEBUG"
|
||||||
eval "$cmd"
|
eval "$cmd"
|
||||||
@ -4592,14 +4593,14 @@ function _RotateBackupsRemoteSSH {
|
|||||||
RemoteLogger "Command was [$cmd]." "WARN"
|
RemoteLogger "Command was [$cmd]." "WARN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
#else
|
||||||
cmd="mv \"$backup\" \"$backup.$PROGRAM.1\""
|
# cmd="mv \"$backup\" \"$backup.$PROGRAM.1\""
|
||||||
RemoteLogger "Launching command [$cmd]." "DEBUG"
|
# RemoteLogger "Launching command [$cmd]." "DEBUG"
|
||||||
eval "$cmd"
|
# eval "$cmd"
|
||||||
if [ $? -ne 0 ]; then
|
# if [ $? -ne 0 ]; then
|
||||||
RemoteLogger "Cannot move [$backup] to [$backup.$PROGRAM.1]." "ERROR"
|
# RemoteLogger "Cannot move [$backup] to [$backup.$PROGRAM.1]." "ERROR"
|
||||||
RemoteLogger "Command was [$cmd]." "WARN"
|
# RemoteLogger "Command was [$cmd]." "WARN"
|
||||||
fi
|
# fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
21
obackup.sh
21
obackup.sh
@ -7,7 +7,7 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2018 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2018 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.1-RC1
|
PROGRAM_VERSION=2.1-RC1
|
||||||
PROGRAM_BUILD=2018093005
|
PROGRAM_BUILD=2018093006
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
|
|
||||||
@ -4363,7 +4363,8 @@ function _RotateBackupsRemoteSSH {
|
|||||||
RemoteLogger "Command was [$cmd]." "WARN"
|
RemoteLogger "Command was [$cmd]." "WARN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$REMOTE_OPERATION" == "yes" ]; then
|
else
|
||||||
|
#elif [ "$REMOTE_OPERATION" == "yes" ]; then
|
||||||
cmd="cp -R \"$backup\" \"$backup.$PROGRAM.1\""
|
cmd="cp -R \"$backup\" \"$backup.$PROGRAM.1\""
|
||||||
RemoteLogger "Launching command [$cmd]." "DEBUG"
|
RemoteLogger "Launching command [$cmd]." "DEBUG"
|
||||||
eval "$cmd"
|
eval "$cmd"
|
||||||
@ -4372,14 +4373,14 @@ function _RotateBackupsRemoteSSH {
|
|||||||
RemoteLogger "Command was [$cmd]." "WARN"
|
RemoteLogger "Command was [$cmd]." "WARN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
#else
|
||||||
cmd="mv \"$backup\" \"$backup.$PROGRAM.1\""
|
# cmd="mv \"$backup\" \"$backup.$PROGRAM.1\""
|
||||||
RemoteLogger "Launching command [$cmd]." "DEBUG"
|
# RemoteLogger "Launching command [$cmd]." "DEBUG"
|
||||||
eval "$cmd"
|
# eval "$cmd"
|
||||||
if [ $? -ne 0 ]; then
|
# if [ $? -ne 0 ]; then
|
||||||
RemoteLogger "Cannot move [$backup] to [$backup.$PROGRAM.1]." "ERROR"
|
# RemoteLogger "Cannot move [$backup] to [$backup.$PROGRAM.1]." "ERROR"
|
||||||
RemoteLogger "Command was [$cmd]." "WARN"
|
# RemoteLogger "Command was [$cmd]." "WARN"
|
||||||
fi
|
# fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user