I need to set up an archiving task on Windows 7 using Windows command line and WinRAR (or some other similar program). I want to create a script that does this, but I have no prior experience.
I want to be able to:
recreate folders substructure down to a specified level
have the contents of each sub-folder at the last level be archived in one archive bearing the name of that sub-folder
password protect the archive
split the archive into chunks of a specified size
have the ability to include only files with the
A(rchive) attribute after archiving
have the possibility to exclude certain files and folders, by specifying them in a text file.
Any help is much appreciated.
I am also ready to learn new things, so pointing me to some tutorials that would help me accomplish this task is also very much appreciated.
Consider the following example: assume I want to archive the contents of a folder called
DOCS and recreate its structure down to Level 2 ('DOCS' is considered to be Level 0). Assume that the structure of sub-folders, down to the second level is the following:
I want to obtain the following structured back-up (on a different partition or drive):