Sorry -- I didn't mean to be vague, they're here:
https://u2182357.ct.sendgrid.net/ls/click?upn=iokNmAdIkTJdVIFu9GuODbAWEHZ78jI1cPpfvthoVhC4BaEf72XvCyGKw-2FIr2B-2BW5WbR_ukiVZyKkp5Cjvx76jsH50UVUlXkseXbKCRkPqSLeHuHGH3U7CETSxfS6wuOOBk007fDdKgBV4BVHzrDFRg9PbDYxYUEhEKzW45jh1oFPLgbE-2FTKoWmYsLoI18b7XVoeEuYEC8BCMglq9KO1arAkc4DKANxQ8GtFsmr65UZ9uUGeOs7RkV3tBoZ3-2F2qrOseJ2iFmvKtoSCrVYzcw6EYt9aYA-2BGDXFWZk-2Bo0vy647mQFRYCQ9V8RfO39tcIMcLjQepDagH6kUPUVX-2FZadP-2BodUkQ-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
'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 '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' <&-
--
This message has been scanned for viruses and
dangerous content by MailScanner [1], and is
believed to be clean.
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:
https://u2182357.ct.sendgrid.net/ls/click?upn=UlfI6r-2FmuicX-2BnC5-2BZ3I6jqURule12gviJtSX09ijM6elDXB-2FCaheeVayym-2Bos-2FoVpjW9-2FkKQnLXMxydGZB-2FDtFXVbRRZpUOAN0UDXsHbqQ-3DJc3B_ukiVZyKkp5Cjvx76jsH50UVUlXkseXbKCRkPqSLeHuHGH3U7CETSxfS6wuOOBk007fDdKgBV4BVHzrDFRg9PbN8hnA7gGe66-2B-2Fh62fxWXN1S-2FEJRd0SvNCHFDc6b-2Bi3ZV6FG1BUqoaHIXMorzZkOgiO0rhZ480JQTWwL6if95pfz8h6OE41RZfDMtxZqzRjqXL2xOdeAdCUupKXbtdZ7aPuh7BRfc8UA-2Fc6eEZNY2zRa6BjNYbOSi2D9V5K8t9JegiK65XGs8i9IigbKWiTV0w-3D-3D
Wiki:
https://u2182357.ct.sendgrid.net/ls/click?upn=sTLFCyLDXowsKqyboHaFJ7mRQqgCaLHaHEBsMBgsjWJZYA9C6tXX0QCFvWN5V9qyuz9Z_ukiVZyKkp5Cjvx76jsH50UVUlXkseXbKCRkPqSLeHuHGH3U7CETSxfS6wuOOBk007fDdKgBV4BVHzrDFRg9PbIn8rVfMRg-2F5jzzHw0balFODRoWZQ8c3mAiW-2BeZaeOKt4gLVP21DLNmXRPbO3qOq5-2BAUy76143JTRQDoJdvLzZf18h3QOVAOBF9J6MYP5Y10Tt5KFp3zq107kNXUFGrKN9qP3N5MwELC1K2XC4DPxzmXF8HR9Y7lr2YhBoejUg-2ByUg4afh-2FVNJAK3gYZSI5CUg-3D-3D
Project:
https://u2182357.ct.sendgrid.net/ls/click?upn=sTLFCyLDXowsKqyboHaFJxCQh5xR48engw5-2BOaCnPIaErGA9O-2Bd-2BJOVXIS1FosZ4wpk0_ukiVZyKkp5Cjvx76jsH50UVUlXkseXbKCRkPqSLeHuHGH3U7CETSxfS6wuOOBk007fDdKgBV4BVHzrDFRg9PbNUdPgL6CYDJA36Lxqqmu-2Blz3SxA2VgbJjGT0-2Fb8lBadmAcWAwLtqw0DCXogfEIBkYtFpAal59cHLE84RgIzKutPY7gDZg2Hs-2FWgD1cHw6O27muwwXG4h27r1ZDa8lB-2BAMt5lgzBCBD6Rd3U6K3Sfi3RvjU-2FBG2S7MHnjeetPWSV-2BMpg-2FdjVHoKvGQI-2BkI87sg-3D-3D
--
Unencumbered by the thought process.
-- Click and Clack the Tappet brothers
--
This message has been scanned for viruses and
dangerous content by MailScanner [1], and is
believed to be clean.
Links:
------
[1]
https://u2182357.ct.sendgrid.net/ls/click?upn=iokNmAdIkTJdVIFu9GuODcXHWCd42qqD-2BDyXm9ee-2FQQFH-2F6ZG8Lok-2FKPKOw2Uvwq_LO7_ukiVZyKkp5Cjvx76jsH50UVUlXkseXbKCRkPqSLeHuHGH3U7CETSxfS6wuOOBk007fDdKgBV4BVHzrDFRg9PbIi2u2avH4WxQPF9PvXXVRG6SEPxOMHctDfpinjcU5lIioxLY11hQGrWcOQm8YZeHx8f-2BLVwZcjBl40KbgIXpno-2FC-2BMmhn1ZA3xsbNmwZ1YxcgKBl6bfAThJ2cCcqY-2F9Xk7F6RaCh4j5KexpoQe0z0WPqsFoniNc4HVkIVAnAx9kQSikSn2czxTQrp4gXDFFNg-3D-3D
_______________________________________________
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/