Mise en place d'une sauvegarde versionnée

This commit is contained in:
2025-05-17 08:43:35 +02:00
parent b921838aa5
commit ef9f0dc134
10 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
@echo off
echo ===============================
echo Installation MySQL ODBC 9.3.0
echo ===============================
echo Installation des composants requis...
start /wait vc_redist.x64.exe /quiet /norestart
start /wait mysql-connector-odbc-9.2.0-winx64.msi /quiet
echo Installation terminée.
pause

View File

@@ -0,0 +1,27 @@
@echo off
title Installation de la version stable de Ratio
echo.
echo ==========================================
echo INSTALLATION DE RATIO - VERSION STABLE
echo ==========================================
echo.
REM Chemin de destination
set DEST="C:\Program Files\Ratio"
REM Créer le dossier si nécessaire
if not exist %DEST% (
mkdir %DEST%
)
REM Copier le fichier Excel
copy "Ratio_prod.xlsm" %DEST%\Ratio.xlsm /Y
REM Protéger le fichier en lecture seule
attrib +R %DEST%\Ratio.xlsm
echo.
echo ✔️ Le fichier Ratio_prod a été installé avec succès !
echo Emplacement : %DEST%\Ratio.xlsm
echo.
pause

BIN
Scripts/VC_redist.x64.exe Normal file

Binary file not shown.

View File

@@ -0,0 +1,18 @@
@echo off
REM === Script de mise à jour de la version PROD depuis le fichier DEV ===
REM Date : 2025_05_17
set "DEV=C:\Users\miche\PycharmProjects\Ratio & Inventaires\Excel\dev\Ratio_dev.xlsm"
set "PROD_DIR=C:\Users\miche\PycharmProjects\Ratio & Inventaires\Excel\prod"
set "PROD_FILE=%PROD_DIR%\Ratio_prod.xlsm"
set "ARCHIVE_FILE=%PROD_DIR%\Ratio_prod_v2025_05_17.xlsm"
echo Sauvegarde de la version actuelle de PROD...
copy /Y "%PROD_FILE%" "%ARCHIVE_FILE%"
echo Copie de la nouvelle version DEV vers PROD...
copy /Y "%DEV%" "%PROD_FILE%"
echo.
echo Mise à jour terminée. Fichier archivé : %ARCHIVE_FILE%
pause

Binary file not shown.

3
Scripts/restaurer.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
cp Excel/prod/ratio_prod.xlsm Excel/dev/ratio_dev.xlsm
echo "✔️ Version stable restaurée dans dev."