Professional Documents
Culture Documents
1810501035
D3 Sistem Informasi B
These labs should be performed on the Ubuntu operating system that you
installed in Chapter 1, “Distributions and Key Components.” Before you begin
this lab, log in to the student account that you created during the installation
process.
This script should create a report in the /var/reports directory. The report should
include all the aforementioned files, and the filename should be file-report-date,
where date is replaced with the current system date (for example, file-report-10-
22-2019).
Test the script as the root user and then have this script run nightly at 3:15 a.m.
by adding a file in the /etc/cron.d directory.
Step 3. Create a
file with the
following entry in
the /etc/cron.d
directory:
Lab 16.2 Script Project #4
Scenario: Users in your organization have complained that it takes too long
for IT support to assist them when they need to get a backup file restored.
They want to be able to restore files on their own when they accidently delete
files. There are several possible solutions to this situation, including a feature
called “backup snapshots” that you should look into when you have a chance.
However, because there are only a handful of people on this system, a simple
script should work.
Create a script that will back up all the files of every user’s home directory
(except the “root” user) in tar format. These backups should go into a director
named /var/backups/username, where username is replaced by the name of the
user.
Note
Consider that you might need to create the
/var/backups/username directory and that the directory should
be owned by a user with the permissions rwx------. Also, each
backup file should include the date of the backup in the filename
and should be owned by a user with the permissions rw-------.
These labs should be performed on the Ubuntu operating system that you
installed in Chapter 1, “Distributions and Key Components.” Before you
begin this lab, log in to the student account that you created during the
installation process.
Step 1
Step 2
Step 1
Step 2
Step 3
Step 4
Step 5