answersLogoWhite

0

A script may contain any commands that process a certain sequence of instructions. For backups you would include any or all commands to create backup files or archive files of what needs to be backed up.

From the backup copy or archive copy you can transfer the information to a secondary media type. For that purpose you would need the commands to copy the information from one media to another.

Writing a shell script to do anything is simple as long as you know what commands you intend to execute and the sequence. Backups are not any more complicated than running individual commands to do something.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How can you protect zip file with password with the help of UNIX script?

A Unix script is not necessary. The zip utility has the capability of compressing the files with a password.


Unix script to calculate average of n numbers given by user?

You really don't want to do this in a shell script - scripting languages in Unix typically do not handle or work with floating values, only integers. A better way would be to write a program to do this that works under Unix, such as a 'C" program. See the related link for an example


How do you write a awk script program in unix?

That is a difficult question to answer - the question is rather vague on what you intend to do. An awk script is a file containing awk commands that operate on 1 or more data files, based on selectors and actions resulting from that selector. It all depends on what you want to do with the data. The program itself is just a text file that can be created by any editor and then interpreted with the awk command.


Write a shell script which deletes all line containing the word unix in the filesn suppiled as argument to this shell script?

# SS29 # Script to delete all lines containing the word 'unix' from files supplied as arguments # Usage: SS29 file1 file2 file3 ... if [$# -lt 2] then echo Insufficient arguments exit fi for file do grep -v unix $file>/temp/$file cp /temp/$file $file done


What is portablity in terms of unix?

Unix is inherently portable; this means that a program, script, or process may be moved from Unix system to Unix system with little effort or change (hence - portable).


How do you read from file in unix shell script?

You will have to be more specific about what you intend to do. In general, a shell script by itself does not read file information and then do something with it. There may be calls to other scripting languages such as awk, perl, python, etc., that will actually read the information and process the data.


What is a command in Unix?

Essentially, a command in Unix is a program that you execute for a certain purpose. It could be anything, from a shell script, to copying or deleting files, etc.


What job functions could you script in a UNIX or DOS shell script?

Actually, just about anything you want to do. Depends on the job function requirements.


What data structure is used by UNIX processes?

For example struct tm and struct stat are often used by UNIX processes.


Unix script that checks each minute and reports on who logs in and who logs out?

You can create a Unix script that checks for user logins and logouts by monitoring the /var/log/auth.log or /var/log/secure file, depending on your Unix distribution. Use the last command to list users who have logged in, and last -x to include system shutdowns and runlevel changes, which indicate logouts. Schedule the script to run every minute using a cron job with the command * * * * * /path/to/your/script.sh. Ensure the script captures the output and reports the findings, perhaps by appending the results to a log file.


What is netbackup?

Veritas NetBackup is an enterprise level heterogeneous backup and recovery suite. It provides cross-platform backup functionality to a large variety of Windows, UNIX and Linux operating systems.


Record your login session into a file in UNIX?

Use the 'script' command; it captures everything you are doing and stores it into a file.