![]() There are some configuration options you can set: I want to emphasize this script is very basic, as all it does is create backups by a utilizing a simple file copy. When a file is provided, it is always backed up, regardless of when it was modified. Incremental backup: When a folder is provided, only files created or modified on the current date areīacked up.Full backup: A complete copy of all files and folders (including sub-folders) are included in the backup.Here is an example of a BackupConfig.txt file (note, the “#” character on the first line indicates that the line is a comment comments are always ignored when the script runs): This file must be named “BackupConfig.txt” and be located in the same folder as the backup script. The configuration file is simply a text file which contains files and folders to backup, entered one backup item per line. After all tasks are completed, the batch script cleans up all the temporary files it created. After the backup files are compressed, the resulting archive is given a file name according to the current date and then moved to a configured storage location, such as an external drive or network location. Dates the compressed file and moves it to a storage location.7-Zip is required to be installed on your system for this to work. After all files to be backed up are copied, they are compressed to save space. Compresses (zips) the backed up files.When a file is named, just that file is backed up.When a folder is named, that folder and all sub-folders are backed up.Creates full or daily incremental (see below for a definition) backups of files and folders you specify in a separate configuration text file (see below).This configurable and customizable script does not require any knowledge (or willingness to learn) of the Windows batch scripting language, but if you decide you do want to learn more about Windows batch scripting, you’ll find this script to be a good starting place. Tto demonstrate the power of the command line, I am providing a simple Windows batch script that you can use to backup your important data. However, it is actually a pretty simple thing to learn. ![]() Most people have never learned to use command-line scripting, and it is considered somewhat of a “black art”. Compare this to the cost of purchasing licenses for backup software on several servers and/or desktop machines.Ī Quick Overview Of The Backup Batch Script
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |