Narzędzia użytkownika

Narzędzia witryny


narzedzia:7z_backup_bat

Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Nowa wersja
Poprzednia wersja
narzedzia:7z_backup_bat [2025/05/07 14:06] – created administratornarzedzia:7z_backup_bat [2025/05/16 18:49] (aktualna) administrator
Linia 1: Linia 1:
-<code batch>+=== BAT: Szyfrowane backupy za pomocą 7z i batcha === 
 + 
 +<code batch backup.bat>
 @echo off @echo off
 setlocal enabledelayedexpansion setlocal enabledelayedexpansion
  
 REM Set the source and destination directories REM Set the source and destination directories
-set "sourceDir=D:\abanasiak+set "sourceDir=A:\" 
-set "destinationDir=D:\OneDrive\BACKUP\abanasiak"+set "destinationDir=B:\"
  
 REM Get the current date in the format DD.MM.YYYY REM Get the current date in the format DD.MM.YYYY
Linia 16: Linia 18:
  
 REM Set the output file name with the current date REM Set the output file name with the current date
-set "outputFileName=abanasiak_%currentDate%.zip"+set "outputFileName=backup_%currentDate%.zip"
  
 REM Create the ZIP archive with encryption REM Create the ZIP archive with encryption
narzedzia/7z_backup_bat.1746619614.txt.gz · ostatnio zmienione: 2025/05/07 14:06 przez administrator