I am trying to set up a 7zip batch file to backup data in an archive with the current date in the file name.
So far I set up
@ECHO OFF
7z a C:\Download\%DATE:~-4%-%DATE:~4,2%-%DATE:~7,2%_Backupfile.7z -mhe -mx0 -r -ssw -w -i@files_included_in_backup.txt -x@files_excluded.txt
pause
The backup itself goes fine, and it should result in a file named JJJ-MM-DD_Backupfile.7z.
Though today on Aug 13 it gives me a file named 2014-8. -01_Backupfile.7z
any idea what´s going wrong? I am using Windows 8.1 64bit and 7-Zip command line version 9.20.