Compare commits
8 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
159b500053 | |
|
|
4e98506825 | |
|
|
6f1ab625d1 | |
|
|
f41e8ccebd | |
|
|
133e65006d | |
|
|
9d8a1a60df | |
|
|
0b989915f3 | |
|
|
732f92466c |
|
|
@ -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@!
|
||||
|
|
@ -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!
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -148,9 +148,9 @@ cls
|
|||
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%""" ^
|
||||
"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%"
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue