Just use this command:
In Windows
rar a -r -m5 -k -s -ag-YYYY.MM.DD_HH.MM.SS.N %1.rar %1
You should put this command into .cmd or .bat file e.g.: xqx_ubackup_rar.cmd
Usage: xqx_ubackup_rar.cmd file-or-folder-for-backup
Tip: You may copy rar.exe from WinRar installation directory to the Windows directory and use it in command line.
In Linux
rar a -r -m5 -k -s -ag-YYYY.MM.DD_HH.MM.SS.N $1.rar $1
You should put this command into .sh file e.g.: xqx_ubackup_rar.sh
Usage: xqx_ubackup_rar.sh file-or-folder-for-backup

No comments:
Post a Comment