7z backup folder to file with date

By technese - Last updated: Thursday, March 1, 2012 - Save & Share - Leave a Comment

7z command line for Windows

7z a -t7z C:\BackupFilename_%date:~10,4%_%date:~4,2%_%date:~7,2%.7z
-r C:\FolderContents\*

7z command line for Linux

7z a -t7z 7z a -t7z filename_`date +%F`.7z -r foldername
Posted in General • • Top Of Page