Aggiunta conf x backup conf

This commit is contained in:
Samuele-StackUser
2023-04-27 16:38:33 +02:00
parent 93a51cfd3a
commit 06a5dac7a4
10 changed files with 50 additions and 26 deletions
+3
View File
@@ -0,0 +1,3 @@
include:
- iobWinStep01
- ConfManIob
+5
View File
@@ -0,0 +1,5 @@
# Script inizio update (copia conf + kill)
DoZipBackup:
cmd.script:
- name: c:/Steamware/src/ZipAndClean.bat; exit 0
- source: salt://ZipAndClean.bat
+5 -1
View File
@@ -1,5 +1,9 @@
# Script inizio update (copia conf + kill)
ManUpdStart:
DoZipBackup:
cmd.script:
- name: c:/Steamware/src/ZipAndClean.bat; exit 0
- source: salt://ZipAndClean.bat
UpdStart:
cmd.script:
- name: c:/Steamware/src/IobUpdStart.bat; exit 0
- source: salt://IobUpdStart.bat
-1
View File
@@ -1,6 +1,5 @@
include:
- IobUpdStart
- ConfManIob
- IobWinNext
- IobMan
- IobUpdStop
+1 -1
View File
@@ -15,7 +15,7 @@ dir_www:
'cd /var/www/ && rm -fr publish*':
cmd.run
'cd /home/netcore/ && wget --user=SWDownloader --password=viaD@nte16 "http://nexus.steamware.net/repository/SWS/GWMS/stable/LAST/GWMS.UI.zip"':
'cd /home/netcore/ && wget --user=SWDownloader --password=viaD@nte16 "https://nexus.steamware.net/repository/SWS/GWMS/stable/LAST/GWMS.UI.zip"':
cmd.run
package_unzip:
+21
View File
@@ -0,0 +1,21 @@
REM Backup script tramite 7Zip delle folder IOB-MAN ed IOB-WIN-NEXT + pulizia file log oltre i 10 gg
SET baseDir=C:\Steamware
SET input1=IOB-MAN
SET input2=IOB-WIN-NEXT
SET outDir=C:\Steamware\Backup\IOB
REM calcolo stringa datetime ordinabile
for /f "tokens=2 delims=.=" %%i in ('wmic os get localdatetime /format:list') do set result=%%i
REM eseguo ZIP delle cartelle
"C:\Program Files\7-Zip\7z.exe" a "%outDir%\%result%\%input1%.zip" "%baseDir%\%input1%"
"C:\Program Files\7-Zip\7z.exe" a "%outDir%\%result%\%input2%.zip" "%baseDir%\%input2%"
REM svuoto file log 7+gg...
forfiles /D -10 /M *.* /P "%baseDir%\%input1%\logs" /S /C "cmd /c del /f /q @path"
forfiles /D -10 /M *.* /P "%baseDir%\%input2%\logs" /S /C "cmd /c del /f /q @path"
TIMEOUT 3
EXIT
-1
View File
@@ -1 +0,0 @@
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAx0PTapGjt//8SoseKkzRxZeIGpSxxCemfxBIrV3WivC4PUie3Whm2OScSLfD1FHXu8wMw5ynHwXvNh3NaIgULEM+vpzqk+M1tSl7Teuu1vqisfcyxj65dHsgF6LU1+gilF0Y7SWTyynxBntmYRlI+DGsHQ9B2NbGBs+bOKJzYq0= marco@Freesky
+2
View File
@@ -0,0 +1,2 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK07vt1NZJKc48WsFOcZIYHCmTXmelMlHro0R0CKpMve marco.locatelli@egalware.com
+13 -13
View File
@@ -1,16 +1,3 @@
#marco:
# user.absent
# user.present:
# - fullname: Marco Salvi
# - shell: /bin/bash
# - home: /home/marco
# - password: '$1$kK4.Rz43$Xfb1BOv5gEy.rU9Q2ZCVm1'
# - groups:
# - sudo
# ssh_auth.present:
# - user: marco
# - source: salt://ssh-keys/marco.id_rsa.pub
# - config: '%h/.ssh/authorized_keys'
samuele:
user.present:
- fullname: Samuele E. Locatelli
@@ -33,4 +20,17 @@ steamware:
- groups:
- sudo
marcolocatelli:
user.present:
- fullname: Marco Locatelli
- shell: /bin/bash
- home: /home/marcolocatelli
- password: '$6$7Z/Dt6isFylkPigM$kwfReFut2XcFHaw4VH14IjFQDDZCYSQ15riqCRLvR1BVll1uTRHgx9cYepML9sPO88V54.71aqrWarfZ8Qlc//'
- groups:
- sudo
ssh_auth.present:
- user: marcolocatelli
- source: salt://ssh-keys/marcolocatelli.id_ed25519.pub
- config: '%h/.ssh/authorized_keys'
-9
View File
@@ -25,15 +25,6 @@ aria2:
nnn:
pkg:
- installed
ncdu:
pkg:
- installed
dos2unix:
pkg:
- installed
mc:
pkg:
- installed