![]() Main output directory (explained in the next paragraph). In manual mode, the user gets a chance to change the outputĪll the backups created in a single execution of the script reside in aĭirectory. The backed-up directories end up as sub-directories of this InĪuto-operations mode (explained more below) this setting is used This causes the backups to be written to the F disk. The output drive letter is specified in a configuration variable called OutputDrive Source directories are copied (this is typically referred to as a full backup). Restoring theīackups is as simple as could be, just copy the desired files as you would copyĪny files. It is as if you copied them with Windows Explorer. The backups are normal files, that is, they are not created in a proprietaryĭata format. General, not just with this script, backing up files that are in-use at the time However, I adviseĪgainst using the script to back up the directory that the script resides in. The script can reside in any directory on your computer. In this example, the sourcefoldersĪrray is declared (the dim statement) to contain 2 elements, which Microsoft has Here is that when declaring or defining an array ("dim" in VBScript) the number ofĮlements is one more than the number in the array declaration. The sample above backs up three directories. ![]() Sourcefolders(2) = "F:\anydirectory\subdirx" With three elements, the folders to backup You do this by modifying the source code of the script as follows: Each directory to be backed up has to be specified as a member of theĬontext refers to a list of similar things). It can back up any number ofĭirectories and the directories can reside on any drive letter available on yourĬomputer. LogComment = "Look ma, no hands!" 'A comment that is written to the log fileĪs noted above, the script backs up all files in a list of directories. OutputFilePrefix = "MikeBkup" 'File name prefix 'Minimum number of days to keep every backup generation 'Minimum number of backup generations to keep Sourcefolders(1) = "C:\WINNT\repair" 'Back up The rest of this document describes the meaning of each of these Like all scripts, this one isĭistributed as source code and can be edited with Notepad. You control the action of the script by modifying configuration variables The script is written in VBScript and intended to be run under Windows If you back up your files to media that can only hold one or two copies, then this script For example, if you were backing up 200 KB of files, you could fit 6 copies of your files on a single floppy disk. This script is most useful in cases where you are backing up files to a location that is large enough to store multiple copies of them. ![]() Want to back up the WINNT/Repair directory. If you use the Outlook calendar, you may want a copy ForĮxample, you might want copies of your E-mail and web browserįavorites/Bookmarks. Copy the script to each computer and customize it as needed.Įven if you are brutally organized, and keep all your files in a singleĭirectory, you may still want to backup files in multiple directories. It should be especially useful to people who need to back up different directories onĭifferent computers. You fall into this category if you don't keep every important file in the My Documents folder. On the other hand, it can back up any number ofĪlmost everyone needs to backup files from multiple directories. If you need to back up some files in a directory but not others, this is not the Other backup programs. For example, this script only backs up entire directories. Really need to be backed up) and there are fewer backup options compared to many The tradeoff is that it may entail some waste (backup some files that don't Thing I wanted to have to do was think about the backups. I'm in the middle of doing something else and need to make backups, the last You so desire, but my goal was the easiest possible backup to run. There are other ways to run the script, and it can provide much information if It will doĮverything from soup to nuts without asking any questions or posing any prompts. This script, click on the icon to run the script and that's it. That is, you can set up an icon on your Windows desktop for ![]() Towards that end, it can be configured for With this in mind, my goal with this script was to Then there was the otherĬomputer where I wasn't backing up anything. Often the directories took a long time toīack-up which meant twiddling my thumbs at my computer. This was error prone (I might forget to backup a directory) and time consuming. On my main computer, I was backing up a multitude ofįolders with Windows explorer. Something so trivial? I needed it for myself. This script (a type of computer program) backs up directories (a.k.a.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |