Adapt winexe command so it works with v1.1

tags/BackupPC-server-scripts-0.1.3-0.beta1 0.1.2_el5
Daniel Berteaud 9 years ago
parent 1a4437ab39
commit 37179cfdf3
  1. 4
      scripts/win-post-backup
  2. 4
      scripts/win-pre-backup

@ -15,8 +15,8 @@ TIMEOUT=300
BOX=$1 BOX=$1
if [[ ! -z $UNAME && ! -z $PASS ]]; then if [[ ! -z $UNAME && ! -z $PASS ]]; then
/usr/bin/timeout $TIMEOUT $WINEXE -s /dev/null -U $UNAME --password=$PASS //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&- /usr/bin/timeout $TIMEOUT $WINEXE -U $UNAME%$PASS //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&-
else else
/usr/bin/timeout $TIMEOUT $WINEXE -s /dev/null --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&- /usr/bin/timeout $TIMEOUT $WINEXE --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&-
fi fi
echo "Rsync and shadow copy unloaded" echo "Rsync and shadow copy unloaded"

@ -13,9 +13,9 @@ TIMEOUT=300
BOX=$1 BOX=$1
if [[ ! -z $UNAME && ! -z $PASS ]]; then 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 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 fi
sleep 5 sleep 5
echo "Rsync and shadow copy loaded" echo "Rsync and shadow copy loaded"

Loading…
Cancel
Save