Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 16 Posts 7 Joined 2008-08-18 15:18 17-year member UID 123498 Gender Male
Status Offline
I am a temporary network administrator in my unit. Backing up the data of the OA server is one of the daily work contents. Now I am copying all the folders and files that should be backed up on the OA server to a folder named with the current date (such as 2008-08-18) in full, and it is also a batch processing that is automatically executed every day. Since the content of the backup is getting larger and larger (a backup reaches 27.6G), I want to find a batch processing file that can automatically delete the backup directories older than five days before the backup (only keep the backup records of the past five days). Thanks in advance! My system is XP_SP1
Credits 16 Posts 7 Joined 2008-08-18 15:18 17-year member UID 123498 Gender Male
Status Offline
Thank you very much for the reply from friend HAT! Just now I tested the above batch file in the directory and it didn't work. I created a 000 folder in the root directory of drive D, and backed up the server files (including directories) to the folders from 2008-08-12 to 2008-08-18 generated in this directory. Now I just want to keep those after 2008-08-14. How to operate? I'm sorry, I'm a DOS newbie. Please be specific. Thanks again!