Compare commits

...

10 Commits

9 changed files with 21 additions and 16 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! ;!@Install@!UTF-8!
Title="My Dental Backup Installer (t00t)" Title="My Dental Backup Installer"
BeginPrompt="Run Mats Mad cool setup script?" BeginPrompt="Run setup script?"
ExecuteFile="setup_duplicati.bat" ExecuteFile="setup_duplicati.bat"
;!@InstallEnd@! ;!@InstallEnd@!

4
create_zip.bat Executable file → Normal file
View File

@ -5,7 +5,7 @@ cls
:START :START
echo. echo.
echo Copyright -- Matthew Shillam -- 2018 echo Copyright -- Matthew Shillam -- 2021
echo. echo.
echo --------------------------------------------------------------------------- echo ---------------------------------------------------------------------------
echo %date% %time% - Install started 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.
echo Archived all files now creating the installer.... echo Archived all files now creating the installer....
echo. 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.
echo All done! 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 :START
echo. echo.
echo Copyright -- Matthew Shillam -- 2018 echo Copyright -- Matthew Shillam -- 2021
echo. echo.
echo --------------------------------------------------------------------------- echo ---------------------------------------------------------------------------
echo %date% %time% - Duplicati Install started echo %date% %time% - Duplicati Install started
@ -73,7 +73,7 @@ cls
echo Installing duplicati binary... echo Installing duplicati binary...
echo Ensure that you deselect run at startup to ensure service works proper! 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!! 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 goto GETPROGRAMPATH
@ -132,8 +132,9 @@ cls
echo Enter client name ( In email eg: client-mat-is-ace )? : echo Enter client name ( In email eg: client-mat-is-ace )? :
set /p CLIENTNAME= set /p CLIENTNAME=
echo. echo.
set CLIENTNAME=%CLIENTNAME: =%
echo --------------------------------------------------------------------------- echo ---------------------------------------------------------------------------
echo Ok -- %CLIENTNAME% it is... echo Ok -- ( %CLIENTNAME% ) it is...
echo --------------------------------------------------------------------------- echo ---------------------------------------------------------------------------
echo. echo.
goto GETSCHEDULES goto GETSCHEDULES
@ -144,11 +145,12 @@ cls
set FILEXRAYS="schedule-xrays-%CLIENTNAME%.json" set FILEXRAYS="schedule-xrays-%CLIENTNAME%.json"
set FILEDATABASE="schedule-database-%CLIENTNAME%.json" set FILEDATABASE="schedule-database-%CLIENTNAME%.json"
set FILEDOCUMENTS="schedule-documents-%CLIENTNAME%.json" set FILEDOCUMENTS="schedule-documents-%CLIENTNAME%.json"
set LOCATION="%~dp0bin"
"%~dp0bin\winscp.com" /ini=nul /command ^ "%~dp0bin\winscp.com" /ini=nul /command ^
"open sftp://mrdownloader@mydentalbackup.co.uk:5349/ -hostkey=""ssh-ed25519 256 PTL6imOWXdhJQEuBThd8yfozcuOtOxpKEZs0hOGZh3c="" -privatekey=""%~dp0bin\id_deployer2.ppk""" ^ "open sftp://deployer@mydentalbackup.co.uk:2122/ -hostkey=""ssh-ed25519 256 c3Vk9bRNCbt1GtuJLi1sGbixUAza34dTo/4Bcy31XOk="" -privatekey=""%~dp0bin\id_deployer2.ppk""" ^
"cd /home/mydentalbackup.co.uk/files" ^ "cd www/mydentalbackup.co.uk/files" ^
"lcd %~dp0bin" ^ "lcd C:\" ^
"get %FILEDATABASE%" "get %FILEDOCUMENTS%" "get %FILEXRAYS%" ^ "get %FILEDATABASE%" "get %FILEDOCUMENTS%" "get %FILEXRAYS%" ^
"close" ^ "close" ^
"exit" "exit"
@ -160,9 +162,9 @@ cls
:ADDSCHEDULES :ADDSCHEDULES
"%~dp0bin\duplicati_client.exe" login http://127.0.0.1:8200 "%~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 "C:\schedule-database-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "%~dp0bin\schedule-documents-%CLIENTNAME%.json" "%~dp0bin\duplicati_client.exe" create backup "C:\schedule-documents-%CLIENTNAME%.json"
"%~dp0bin\duplicati_client.exe" create backup "%~dp0bin\schedule-xrays-%CLIENTNAME%.json" "%~dp0bin\duplicati_client.exe" create backup "C:\schedule-xrays-%CLIENTNAME%.json"
goto SORTCHORTCUTS goto SORTCHORTCUTS
@ -174,8 +176,11 @@ cls
echo. echo.
del "%USERPROFILE%\Desktop\Duplicati 2.lnk" del "%USERPROFILE%\Desktop\Duplicati 2.lnk"
echo. echo.
echo Adding new shortcut to desktop echo Deleting Temp files...
xcopy "%~dp0bin\Duplicati 2 start.lnk" "%USERPROFILE%\Desktop" del "C:\%FILEDATABASE%"
del "C:\%FILEDOCUMENTS%"
del "C:\%FILEXRAYS%"