Compare commits

...

8 Commits
v0.2 ... master

9 changed files with 18 additions and 15 deletions

0
7zSD.sfx Executable file → Normal file
View File

4
config.txt Executable file → Normal file
View File

@ -1,5 +1,5 @@
;!@Install@!UTF-8!
Title="My Dental Backup Installer (t00t)"
BeginPrompt="Run Mats Mad cool setup script?"
Title="My Dental Backup Installer"
BeginPrompt="Run setup script?"
ExecuteFile="setup_duplicati.bat"
;!@InstallEnd@!

4
create_zip.bat Executable file → Normal file
View File

@ -5,7 +5,7 @@ cls
:START
echo.
echo Copyright -- Matthew Shillam -- 2018
echo Copyright -- Matthew Shillam -- 2021
echo.
echo ---------------------------------------------------------------------------
echo %date% %time% - Install started
@ -17,7 +17,7 @@ start /wait 7z.exe a archived_files.7z .\duplicati_install_script\* -r -x!*.git
echo.
echo Archived all files now creating the installer....
echo.
copy /b 7zSD.sfx + config.txt + archived_files.7z Duplicati_installer_v0.1.exe
copy /b 7zSD.sfx + config.txt + archived_files.7z Duplicati_installer_v0.8.exe
echo.
echo All done!

0
duplicati_install_script/bin/WinSCP.com Executable file → Normal file
View File

0
duplicati_install_script/bin/WinSCP.exe Executable file → Normal file
View File

0
duplicati_install_script/bin/duplicati_client.exe Executable file → Normal file
View File

View File

@ -6,7 +6,7 @@ cls
:START
echo.
echo Copyright -- Matthew Shillam -- 2018
echo Copyright -- Matthew Shillam -- 2021
echo.
echo ---------------------------------------------------------------------------
echo %date% %time% - Duplicati Install started
@ -73,7 +73,7 @@ cls
echo Installing duplicati binary...
echo Ensure that you deselect run at startup to ensure service works proper!
echo Also! Ensure you do not run duplicati after install has completed!!
start /wait msiexec /i "%~dp0bin\duplicati-2.0.3.11_canary_2018-09-05-x64.msi"
start /wait msiexec /i "%~dp0bin\duplicati-2.0.7.1_beta_2023-05-25-x64.msi"
goto GETPROGRAMPATH
@ -147,10 +147,10 @@ cls
set FILEDOCUMENTS="schedule-documents-%CLIENTNAME%.json"
set LOCATION="%~dp0bin"
"%~dp0bin\winscp.com" /ini=nul /command ^
"open sftp://mrdownloader@mydentalbackup.co.uk:5349/ -hostkey=""ssh-ed25519 256 PTL6imOWXdhJQEuBThd8yfozcuOtOxpKEZs0hOGZh3c="" -privatekey=""%~dp0bin\id_deployer2.ppk""" ^
"cd /home/mydentalbackup.co.uk/files" ^
"lcd "%LOCATION%""" ^
"%~dp0bin\winscp.com" /ini=nul /command ^
"open sftp://deployer@mydentalbackup.co.uk:2122/ -hostkey=""ssh-ed25519 256 c3Vk9bRNCbt1GtuJLi1sGbixUAza34dTo/4Bcy31XOk="" -privatekey=""%~dp0bin\id_deployer2.ppk""" ^
"cd www/mydentalbackup.co.uk/files" ^
"lcd C:\" ^
"get %FILEDATABASE%" "get %FILEDOCUMENTS%" "get %FILEXRAYS%" ^
"close" ^
"exit"
@ -162,9 +162,9 @@ cls
:ADDSCHEDULES
"%~dp0bin\duplicati_client.exe" login http://127.0.0.1:8200
"%~dp0bin\duplicati_client.exe" create backup "%~dp0bin\schedule-database-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "%~dp0bin\schedule-documents-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "%~dp0bin\schedule-xrays-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "C:\schedule-database-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "C:\schedule-documents-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "C:\schedule-xrays-%CLIENTNAME%.json"
goto SORTCHORTCUTS
@ -176,8 +176,11 @@ cls
echo.
del "%USERPROFILE%\Desktop\Duplicati 2.lnk"
echo.
echo Adding new shortcut to desktop
xcopy "%~dp0bin\Duplicati 2 start.lnk" "%USERPROFILE%\Desktop"
echo Deleting Temp files...
del "C:\%FILEDATABASE%"
del "C:\%FILEDOCUMENTS%"
del "C:\%FILEXRAYS%"