Please look at my feature request for better way.
https://github.com/backuppc/backuppc/issues/259
On 12.03.2020 14:26, Michael Stowe wrote:
Sorry -- I didn't mean to be vague, they're here:
http://www.michaelstowe.com/backuppc/
<https://u2182357.ct.sendgrid.net/ls/click?upn=iokNmAdIkTJdVIFu9GuODbAWEHZ78jI1cPpfvthoVhC4BaEf72XvCyGKw-2FIr2B-2BWAecS_ukiVZyKkp5Cjvx76jsH50UVUlXkseXbKCRkPqSLeHuHGH3U7CETSxfS6wuOOBk007fDdKgBV4BVHzrDFRg9PbJUUMBOQDX1sMCBpiPakR-2B6HoCXWk-2BqV75gOs1i-2FqmikT22ZUYkaYRxPFqWT7PvUL2hnl8bwFEVP-2F3T1xq7OtA0LUTrU1ykTshd43ZkLMJY9Kdn9BDdie1lNkHN72oogJW6L-2BdHNAmDcWYRkLDu-2FDGrQdigL0S5LmikkOuwB1zS6bB0iLw5d4D2kCg2KEC0eLw-3D-3D>
In a nutshell, the installer will select the appropriate vshadow and
rsync for the version of Windows, and install a set of scripts on the
Windows host.
On 2020-03-12 03:15, Pete Geenhuizen wrote:
Michael,
Which binaries that you've packaged are you referring to and if
needed where can I find them?
Thanks
Pete
On 3/12/20 1:26 AM, Michael Stowe wrote:
With each security update and version bump of Samba, winexe is
becoming more and more finicky, so I thought it time to see if
Window's own ssh could be used for the same purpose. While it's not
as straightforward as I'd hoped, it does work and doesn't require
anything other than the binaries I'd already packaged for the purpose.
This is the script executed with $Conf{DumpPreUserCmd}:
|#!/bin/bash
#
# Takes one parameter, the name of the system
#
BOX=$1
/usr/bin/ssh Administrator@$BOX <#NOP>
'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Invoke-WmiMethod -Class Win32_Process -EnableAllPrivileges -Name
Create -ArgumentList \"cmd /c c:\backuppc\pre-exec.cmd\"'
# The above command is running in the background, we need to wait
for rsync
# to start
let i=0
while [ $i -le 72 ]; do
PIDEXISTS=$(ssh Administrator@carrot <#NOP> 'dir
C:\BackupPC\rsyncd.pid' |& grep -v "^ Volume" | grep -v "^
Directory" | grep -o rsyncd.pid)
if [ "$PIDEXISTS" == "rsyncd.pid" ]; then
i=-1
break
fi
echo -n "."
sleep 5
done
if [ $i -eq -1 ]; then
echo ""
echo "Rsync and shadow copy loaded"
exit 0
else
echo "Error loading rsync"
exit 1
fi|
This assumes that one has installed the ssh server that comes with
Windows, and set up key authentication. Note that it's necessary to
use an account with Administrative privileges in order to have the
requisite permissions.
$Conf{DumpPostUserCmd} is more straightforward:
|#!/bin/bash
/usr/bin/ssh Administrator@$BOX 'cmd /c echo '1' >
c:\backuppc\wake.up' <&-
|
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/