Question: Create the following backup script: # ! / bin / bash ################################# # # Backup script bkp . sh # ################################ # What gets backed

Create the following backup script:
#!/bin/bash
#################################
#
# Backup script
bkp.sh
#
################################
# What gets backed up
backup_files="/home/student /etc"
# Where to backup to
dest="/my_backup"
# Create archive filename
day =$ (date +%)
hostname =$ (hostname -s)
archive file="$hostname-$day.tgz"
#Print start status message
echo "Backing up $backup_files to $dest/$archive_file"
date
echo
# Backup files using tar
tar czf $dest/$archive file $backup_files
# Print end status message
echo
echo "Backup finished"
date
[root@workstation student]#
Test the script using the at daemon to run the script 5 minutes from now. Type the command to do this.
Type the recurring user job crontab line to run the script at 11:00pm the first Friday of every month.
Create a recurring user job for the backup script to run every 5 minutes starting the next hour (i.e. if its 4:30pm
set it to run at 1700(5:00pm); you don't want to be waiting around for this script to execute). Show your User
crontab file.
 Create the following backup script: #!/bin/bash ################################# # # Backup script

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!