filmov
tv
Tutorial: How to Perform Backups and Crontab Scheduling on Linux and Unix

Показать описание
Lab 0x06 - Linux Backups, Cron, and Scripting
Overview
This lab should expose the student to backups using tar and chronological tables using scripts. Additional investigation into tar, network backup transfer, and encryption are encouraged.
Create your first backup script:
date +%Y%m%d.%H%M
#!/bin/bash
# Comment/NAME 20200422.2000hrs
# Backup script
var_date=`date +%Y%m%d.%H%M`
ll backups/
ll
Change the files to their final names:
Change the weekly backup to reflect the proper name:
#!/bin/bash
# Comment/NAME 20200422.2000hrs
# Backup script
var_date=`date +%Y%m%d.%H%M`
Configure the chronological table:
vi /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
#
#linux #backup #scripting #scriptingtechnique #chmod
Thank you for dropping by!
Please join me:
Tutorial: How to Perform Backups and Crontab Scheduling on Linux and Unix
TIMESTAMPS
00:00 Introduction to Backups
01:26 Backups
06:15 Cron
07:44 Scripting
11:37 Run
12:00 Backups Info
16:35 Conclusion to Backups
Overview
This lab should expose the student to backups using tar and chronological tables using scripts. Additional investigation into tar, network backup transfer, and encryption are encouraged.
Create your first backup script:
date +%Y%m%d.%H%M
#!/bin/bash
# Comment/NAME 20200422.2000hrs
# Backup script
var_date=`date +%Y%m%d.%H%M`
ll backups/
ll
Change the files to their final names:
Change the weekly backup to reflect the proper name:
#!/bin/bash
# Comment/NAME 20200422.2000hrs
# Backup script
var_date=`date +%Y%m%d.%H%M`
Configure the chronological table:
vi /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
#
#linux #backup #scripting #scriptingtechnique #chmod
Thank you for dropping by!
Please join me:
Tutorial: How to Perform Backups and Crontab Scheduling on Linux and Unix
TIMESTAMPS
00:00 Introduction to Backups
01:26 Backups
06:15 Cron
07:44 Scripting
11:37 Run
12:00 Backups Info
16:35 Conclusion to Backups
Комментарии