How do I create these backup folders and manage them? Thanks
Posted: 20 Jul 2011 06:50
Hi folks,
I have a backup requirement, I need to do a weekly backup and maintain 4 week's history, so at the first I want to make 1 folder called BackupWk1, and then BackupWk2 at the second week, BackupWk3 at the third week, BackupWk4 at the fourth week.
All the source files will need to be copied into the one of the four folders, first week goes to first folder and so on;
On the fifth week, I want a little trick here, I want to delete the first week folder, rename all the rest three folders to 1 number up, i.e. BackupWk2 becomes BackupWk1, BackupWk3 becomes BackupWk2, BackupWk4 becomes BackupWk3, and then create a new BackWk1 folder, then copy all the source files into this folder, that being said, when I look at the backup folders, I know by name that the BackupWk1 is the oldest one and BackupWk4 is the latest one.
Is it difficult to achieve this? How do I do this? Can someone write some code for me? I am not a DOS guru, thank you very much in advance.
I have a backup requirement, I need to do a weekly backup and maintain 4 week's history, so at the first I want to make 1 folder called BackupWk1, and then BackupWk2 at the second week, BackupWk3 at the third week, BackupWk4 at the fourth week.
All the source files will need to be copied into the one of the four folders, first week goes to first folder and so on;
On the fifth week, I want a little trick here, I want to delete the first week folder, rename all the rest three folders to 1 number up, i.e. BackupWk2 becomes BackupWk1, BackupWk3 becomes BackupWk2, BackupWk4 becomes BackupWk3, and then create a new BackWk1 folder, then copy all the source files into this folder, that being said, when I look at the backup folders, I know by name that the BackupWk1 is the oldest one and BackupWk4 is the latest one.
Is it difficult to achieve this? How do I do this? Can someone write some code for me? I am not a DOS guru, thank you very much in advance.