Using WinRar as a backup tool.
Three backup mode (full, incremental and differential) described down are based upon Archive attribute.
Main options and how to restore:
- Full
- RAR option:
-ac
- Restore order: just restore the FULL backup
- RAR option:
- Incremental
- RAR option:
-ac -ao
- Restore order: restore first from last FULL backup and then all incremental from oldest to latest one
- RAR option:
- Differential
- RAR option:
-ao
- Restore order: restore first from last FULL backup and then only the last differential backup
- RAR option:
Examples
-
winrar.exe a -se -rr3% -ac -ag+YYYYMMDD_full_ -k -m5 -ms -os -r -ep1 e:\mydoc.rar @mydocpath.txt
-
winrar.exe a -se -rr3% -ac -ag+YYYYMMDD_incr_ -k -m4 -ms -os -r -ep1 -ac -ao e:\mydoc.rar @mydocpath.txt
-
winrar.exe a -se -rr3% -ag+YYYYMMDD_diff_ -k -m4 -ms -os -r -ep1 -ao e:\mydoc.rar @mydocpath.txt
-
.\Rar a -ac -ao -ma5 -htb -agYYYYMMdd-hhmmss -r “%USERPROFILE%\Desktop\testbkp-.rar” w:\temp\test
RAR Options
-se
= Create solid archive-rr
= add data recovery record-ac
= Clear Archive attribute after compression or extraction-agxxxxxxxxxxxx
-k
= Lock archive-m<0..5>
= Set compression level (0-store…3-default…5-maximal)-ms
-os
= Save NTFS streams-r
-ao
= add only the files with archive bit on-ep1
Exclude base directory from names-qo+
= Add quick open information