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. Please use Linux Ubuntu distro. Please provide step-by-step and detailed solution

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

Students also viewed these Databases questions

Question

How would you expect a recession to affect asset management ratios?

Answered: 1 week ago