Różnice między wybraną wersją a wersją aktualną.
Nowa wersja | Poprzednia wersja | ||
narzedzia:7z_backup_bat [2025/05/07 14:06] – created administrator | narzedzia: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 " | + | set " |
- | set " | + | set " |
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 " | + | set " |
REM Create the ZIP archive with encryption | REM Create the ZIP archive with encryption |