|
|
|
@ -13,9 +13,9 @@ TIMEOUT=300 |
|
|
|
|
BOX=$1 |
|
|
|
|
|
|
|
|
|
if [[ ! -z $UNAME && ! -z $PASS ]]; then |
|
|
|
|
/usr/bin/timeout $TIMEOUT /usr/bin/winexe -s /dev/null --interactive=0 -U $UNAME --password=$PASS //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 |
|
|
|
|
/usr/bin/timeout $TIMEOUT /usr/bin/winexe --interactive=0 -U $UNAME%$PASS //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 |
|
|
|
|
else |
|
|
|
|
/usr/bin/timeout $TIMEOUT /usr/bin/winexe -s /dev/null --interactive=0 --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 |
|
|
|
|
/usr/bin/timeout $TIMEOUT /usr/bin/winexe --interactive=0 --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255 |
|
|
|
|
fi |
|
|
|
|
sleep 5 |
|
|
|
|
echo "Rsync and shadow copy loaded" |
|
|
|
|