I've always wanted to do reviews of my favorite games. It's also an archival place
where I can post random things that may be useful to others down the line trying
to 100% games or something. So hope you enjoy my little corner of the internet!
Even if there isn't much here yet...
Back in the days I had an old prebuilt, I'd have to frequently reinstall windows since some part of the operating system didn't cooperate
with some part of the hardware. As a result, I ended up having to backup my data quite often. Because it was so frequent I made a script
to help automate it. I figured I might as well share it with the world in case someone else needs something like this.
Since it's geared towards backing up an entire system (including multiple drives), this script is highly multithreaded to
reduce the amount of time it takes to finish a backup.
Batch Script Source
@echoOFFREMSets %$date% to M-D-YYYYset$date=%date:~4%set$date=%$date:/=-%REM=========== CONFIG ===========setCOMPRESS_7Z_LOCATION="C:\Program Files\7-Zip\7zG.exe"setCOMPRESS_FLAGS=-t7z -m0=lzma2-mfb=64-md=64m-mmt6 -p -mhe=on-spfsetARCHIVE_PATHS="C:\Users\%USERNAME%\"setEXCLUDE_FOLDERS=-xr!"3D Objects"-xr!"Favorites"-x!$RECYCLE.BIN -xr!"Application Data"-xr!"Temp"-xr!"Temporary Internet Files"-xr!"Cookies"-xr!"Cache"setBACKUP_PATH=%~d0\Backups\Backup-%$date%.7z
REM=========== CONFIG ===========echo Starting 7-zip process...
start"7z Backup"%COMPRESS_7Z_LOCATION% a %COMPRESS_FLAGS%%BACKUP_PATH%%ARCHIVE_PATHS%%EXCLUDE_PATHS%pause
7-Zip Parameters
Parameter
Description
-t7z
Create a .7z file
-m0
Specify a compression method
-mfb
Specify number of LZMA fast bytes
-md
Specify dictionary size
-mmt#
Replace # with the number of threads to use; Higher = faster but with diminishing returns
-p[PHRASE]
Replace [PHRASE] with encoding phrase. Do not include [PHRASE] to be prompted for one
-mhe
Encrypt file header with above passphrase
-spf
Archive file as full path name (including drive letter). Allows for multiple different drives to be archived in a single file.
Arguments
Parameter
Description
COMPRESS_7Z_LOCATION
Full path to 7zG.exe (GUI version of 7-zip)
COMPRESS_FLAGS
7-Zip compression flags. See above description for breakdown on defaults
ARCHIVE_PATHS
Paths to archive. This can include paths that are from drives other than the C drive. Use
absolute paths
EXCLUDE_FOLDERS
Folders to ignore (just name of the folder; no absolute path).
Use -xr!"NAME" for folders and -x!"NAME" for an item
BACKUP_PATH
Location to save backup file to. By default it's
[drive script is on]:/Backups/Backup-M-D-YYY.7z