backup folder using winrar

sayno

Senior Member
Joined
Aug 6, 2000
Messages
1,111
Reaction score
0
hello guys,
hope you guys able to help me.. I copy this codes from google,

However after I try. it actually only rar from the main folder, but not its sub. what can I do to include rar its sub folders?

appreciate for any help.
Thanks

@ECHO OFF
ECHO *** AUTO DAILY BACKUP FOR my SUMMARIES ***
CD\mySUMMARIES\DATA
XCOPY \\my-server\ath\ C:\mySUMMARIES\DATA /Y
C:\RAR.EXE A -AG+YYYY-MM-DD C:\mySUMMARIES\DATA
PAUSE
 

tungsten2

Master Member
Joined
May 30, 2000
Messages
4,147
Reaction score
1
use the “-r” switch recurses subfolders

eg C:\RAR.EXE A -r -AG+YYYY-MM-DD C:\mySUMMARIES\DATA
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top