Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

you must regularly automate system maintenance tasks, for a variety of different purposes. One such purpose is backing up critical files to allow for restoration

you must regularly automate system maintenance tasks, for a variety of different purposes. One such purpose is backing up critical files to allow for restoration in the event of corruption or file loss.

Task : Write a bash script, saved to the file path /usr/local/sbin/backup.sh, that does the following:

1. Create a compressed TAR archive of all files located under

/opt/confidential, using the gz compression algorithm. The generated output file created by the script should be saved in the /srv/archive directory with a filename of the format savefile.tar.gz

2. Execute the script to ensure that it works and that the appropriate archive file is generated. Make sure that only a single valid archive is present in the

/srv/archive directory when you have finished working

3. Ensure that the script is executable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Eric Redmond ,Jim Wilson

1st Edition

1934356921, 978-1934356920

More Books

Students also viewed these Databases questions

Question

LOQ 13-13: What groups are frequent targets of prejudice?

Answered: 1 week ago

Question

4. Identify the challenges facing todays organizations

Answered: 1 week ago