StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Design of a Backup Program in Batch File Running on MS-DOS - Essay Example

Cite this document
Summary
"Design of a Backup Program in Batch File Running on MS-DOS" paper involves the development of an automatic backup program in a batch file for the MS-DOS system and Bash Shell. The program interacts with the user in dialogue and requests the directory name as an option for a backup location…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER94.4% of users find it useful
Design of a Backup Program in Batch File Running on MS-DOS
Read Text Preview

Extract of sample "Design of a Backup Program in Batch File Running on MS-DOS"

? Operating Systems Design of a backup program in batch file running on MS DOS This project involves the development of an automatic back up program in batch file for MS DOS operating system and for Bash Shell. The program will interact with the user in a dialogue and request for the directory name as an option for back up location. It is a fully documented program with a bat extension. In the user interaction, it checks if the user back up directory is available, then proceeds with the backup process (Cavanagh, 2002). In the absence of the backup directory, it asks the user for an alternative directory. This program is in the complicity level three since it is able to create a batch file to run the automatic back up process. The interaction takes place through a dialogue in a command line mode. It will also be able to operate in a work schedule such that it can run repeatedly. It will run in a multiple back up operation for moving many files in the same session. The backup system will present the menu in command line forms through the same dialogue system. However, the naming system will be a dynamic naming system depending on the user’s discretion, where the system will allow the user to specify the naming protocol, either by use of incremental alphabetical and numerical characters and perhaps linked to the day’s date. The changes in the codes of the batch file will alter the way the file runs. It checks the availability of the source of the files to be backed up as well as the destination directories which are in existence. Simple Source code @echo off :: variables set drive = C:\Backup set folder = %date:~7,2% set backupcmd = xcopy /s /c /d /e /h /i /r /k /y @pause echo ### Backing up directory... %backupcommand% "C:\Program Files\dir1" "%dirve%\%folder1%" @pause echo The file Backup process Completed successfully @pause @pause @pause We save the file as backup.bat and we see the icon below On running the file the output below appears Result Press any key to continue . .. ### Backing up directory… '"C:\Program Files\dir1"' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . The file Backup process Completed successfully Press any key to continue . . . Advanced Source code @echo off :: Declaring source code variables set drive = C:\BatchBackup set bapcmd = xcopy /s /c /d /e /h /i /r /y @pause @pause echo ### Program for backing up the Documents... %bapcmd% "%USERPROFILE%\My Documents" "%D%\My Documents" echo ### Backing up the Favorites... %bapcmd% "%USERPROFILE%\Site" "%C%\ bapcmd " @pause @pause echo ### The system is Backing up all the Em and address book. %bapcmd% "%USERPROFILE%\Applic Data Files\Microsoft\AddBk" "%C%\ My Address Book" %bapcmd% "%USERPROFILE%\Local Settings\ Applic Data\Identities" "%C%\Outlook Express" @pause @pause echo ### System is Backing up all Ems and Em contacts in MS Outlook express %bapcmd% "%USERPROFILE%\s\ Applic Data\MS Outlook" "%C%\Outlook" @pause @pause echo ### System Backing up Registry********* if not exist "%C%\Registry" mkdir "%D%\Registry" if exist "%C%\Registry\regbackup.reg" del "%D%\Registry\regbackup.reg" regedit /e "%D%\Registry\regbackup.reg" @pause @pause ::Registry Backup Completed Successfully :: use below syntax to backup other directories... :: %bapcmd% "C" "%drive%\ % "D" "%drive% echo System successfully completes Backup Process! @pause @pause @pause Result Press any key to continue . . . Press any key to continue . . . ### Program for backing up the Documents... '"C:\Users\COLOO\My Documents"' is not recognized as an internal or external com mand, operable program or batch file. ### Backing up the Favorites... '"C:\Users\COLOO\Site"' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . Press any key to continue . . . ### The system is Backing up all the Em and address book. The system cannot find the path specified. The system cannot find the path specified. Press any key to continue . . . Press any key to continue . . . ### System is Backing up all Ems and Em contacts in MS Outlook express The system cannot find the path specified. Press any key to continue . . . Press any key to continue . . . ### System Backing up Registry********* 1. Design of a backup program in batch file running on Bash Shell rem rem ** Backup script for file server using ftp rem ** Last Modified in 06-07-2013 rem ** rem ** rem ** Setting local variables for the source code rem ** @set cuMon = %date:~4,2% @set cuDay = %date:~7,2% @set cuYr = %date:~10,4% @set DaysToSv = 30 @set EmDir = “C:\inetpub\mailroot\Pickup” @set ToEm = admin@hotmail.net @set FrEm = Admin@hotmail.net @set ToDir = C:\Backups @set ToArc = %ToDir%Arc @set SFile = %ToDir%Scripts @set FPrefix = ADev_ @set ConfigFile = BackupConfig.bks @set DeleteFile = DeleteOldFiles.vbs @set cuName = %FPrefix%%cuYr%%cuMon%%cuDay%.bkf @set cuLog = %FPrefix%%cuYr%%cuMon%%cuDay%.log @set zipName = %FPrefix%%cuYr%%cuMon%%cuDay%.zip @set rarName = %FPrefix%%cuYr%%cuMon%%cuDay%.rar rem ** rem ** Starting to build log/Em file rem ** echo x-sender: %FrEm% >> %ToDir%%cuLog% echo x-receiver: %ToEm% >> %ToDir%%cuLog% echo From: %FrEm% >> %ToDir%%cuLog% echo To: %ToEm% >> %ToDir%%cuLog% echo Main Point: My backup >> %ToDir%%cuLog% echo.>> %ToDir%%cuLog% echo.>> %ToDir%%cuLog% echo System beginning backup on %date% at %time% >> %ToDir%%cuLog% echo.>> %ToDir%%cuLog% rem * rem ** System deleting old archives rem * echo ...Delete archive that are older than %DaysToSv% days on %date% at %time% >> %ToDir%%cuLog% cscript %ScriptFile%%DeleteFile% %ToArchive% %DaysToSv% >> %ToDir%%cuLog% rem ** rem ** Pause for backup rem ** echo ...now pausing on %date% at %time% >> %ToDir%%cuLog% dbpause >> %ToDir%%cuLog% rem ** rem ** Executing the Windows backup rem ** echo ...now beginning Backup on %date% at %time% >> %ToDir%%cuLog% @ntbackup backup "@%ScriptFile%%ConfigFile%" /m normal /j "My Backup" /f "%ToDir%%cuName%" /l:f >> %ToDir%%cuLog% rem ** rem ** Resume for backup rem ** echo ...resuming the on %date% at %time% >> %ToDir%%cuLog% dbresume >> %ToDir%%cuLog% rem ** rem ** Zipping the file rem ** echo ...zipping (RAR) is now starting on %date% at %time% >> %ToDir%%cuLog% D:\WinRAR\rar.exe A %ToDir%%rarName% %ToDir%%cuName% rem ** rem ** Ftp the backup to another server rem ** rem echo ... passing files through server on %date% at %time% >> %ToDir%%cuLog% @call E:\Backups\Scripts\sftp.bat >> %ToDir%%cuLog% rem ** rem ** Copy the backup log and file rem ** echo.>> %ToDir%%cuLog% echo ...archiving the backup file on %date% at %time% >> %ToDir%%cuLog% @copy %ToDir%%rarName% %ToArchive%%rarName% >> %ToDir%%cuLog% rem ** rem ** Delete the present backup and the zip file rem ** echo ...Deleting backup file(s) %ToDir%%cuName% >> %ToDir%%cuLog% @del %ToDir%%cuName% >> %ToDir%%cuLog% @del %ToDir%%rarName% >> %ToDir%%cuLog% rem @del %ToDir%%zipName% >> %ToDir%%cuLog% rem ** rem ** Finishing the updates the log/Em file rem ** echo.>> %ToDir%%cuLog% echo Server backup complete on %date% at %time% >> %ToDir%%cuLog% rem ** rem ** Copying the log to Email storage and deleting the log rem ** @copy %ToDir%%cuLog% %EmDir% @copy %ToDir%%cuLog% %ToArchive%%cuLog% @del %ToDir%%cuLog% rem ** rem ** End of the source code rem ** @pause Result Reference Cavanagh, J. P., 2002. File Backup: It Doesn't Take a Genius. New York: John Wiley. Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Operating systems Essay Example | Topics and Well Written Essays - 1000 words”, n.d.)
Operating systems Essay Example | Topics and Well Written Essays - 1000 words. Retrieved from https://studentshare.org/information-technology/1481469-operating-systems
(Operating Systems Essay Example | Topics and Well Written Essays - 1000 Words)
Operating Systems Essay Example | Topics and Well Written Essays - 1000 Words. https://studentshare.org/information-technology/1481469-operating-systems.
“Operating Systems Essay Example | Topics and Well Written Essays - 1000 Words”, n.d. https://studentshare.org/information-technology/1481469-operating-systems.
  • Cited: 0 times

CHECK THESE SAMPLES OF Design of a Backup Program in Batch File Running on MS-DOS

Service Desk Shift Supervisors Guide

The code for the program that will be supplementary to the Supervisor's Guide will be a program to determine scheduling for the various shift supervisor(s) so that data may be entered and then the subsequent schedule for the particular supervisor will appear.... SERVICE DESK Service Desk Shift Supervisors' Guide Table of Contents Project Summary Review of Other Work Rationale and Systems Analysis Goals and Objectives Project Deliverables....
25 Pages (6250 words) Essay

Partitions and Principles for Secure Operating Systems

The 'system generation' process on many systems is included as a set of menu selections and parameter entry forms for helping the user throughout the execution of the process while the 'system generation' process on some systems entered in the form of a script or batch file.... Accepts user requests and process them from the user's program-applications and generates or display the desired output results....
9 Pages (2250 words) Report

Open Source Alternatives for Small Business

In the same way, the second application is application software and third is a utility program that is supported by a software application.... This paper presents an analysis of three different open source software programs.... These applications are an excellent choice for the small and medium organization....
12 Pages (3000 words) Research Paper

Computer Glossary - Internal and External LAN

Without dedicated networks to clients, and because there would be unacceptable security risks in managing client VPN access to the office LAN, it has been proposed that all networked services outside the office LAN will be managed on a separate machine running a Linux (or Ix) OS....
13 Pages (3250 words) Essay

Vulnerability Assessment Systems

This essay "Vulnerability Assessment Systems" focuses on security scanning tools that assess the level of threat that can penetrate a system.... The main job of such tools is to scan networks, servers, firewalls, routers, and applications and report system vulnerabilities.... .... ... ... New threats are discovered each day thus the vulnerability assessment tools must be updated regularly....
11 Pages (2750 words) Essay

Introduction to computing

This process can take place either through information transferred through the use of a keyboard or through the execution of a set of commands contained in a file called a shell script.... shell is the interface program that allows a user to communicate with the computer.... “When you log in to the system, the system locates the name of a shell program to execute....
12 Pages (3000 words) Essay

Instruction Manual Promotional Media

Without dedicated networks to clients, and because there would be unacceptable security risks in managing client VPN access to the office LAN, it has been proposed that all networked services outside the office LAN will be managed on a separate machine running a Linux (or Ix) OS.... l] (actually, since you are working as root 0700 permission would be better, but you may want to permit utilities not running as root to execute your new Perl script, so well leave it as 0755 for the time being), *N....
13 Pages (3250 words) Assignment

CLI in Modern Computing Operating Systems

The command line interface can also enable users to check the status and processes running on the computer.... This is attained via the use of CLI or creation of text (ASCII) file.... Even though the language is meant for online users, the language has a provision for batch working (Bardram 2005).... ommand-line shell in comparison to Graphical User Interface (GUI)UNIX command line shellUNIX command line shell has a text window terminal that has a fixed number of lines and the columns are controlled by the shell program....
8 Pages (2000 words) Assignment
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us