Linux Backup with TAR and Cron Jobs
Info
Level: Intermediate
Presenter: Eli the Computer Guy
Date Created: September 21, 2010
Length of Class: 35 Minutes
Tracks
Linux
Prerequisites
Introduction to Linux
Installing Linux
Basic Linux Tasks
VIM for File Editing
Navigation in Linux
Users, Groups and Permissions in Linux
Purpose of Class
This class teaches students how to backup directories using TAR, and demonstrates how to schedule tasks using Cron Jobs.
Topics Covered
Backing Up Directories with TAR
Recovering Directories with TAR
Setting Up Cron Jobs for Scheduled Tasks
Class Notes
Backup Using TAR
Backup = sudo tar --cvpzf backup.taz.gz --exclude/=directory (recursive) PATH
--c = create new file (overwrites old file)
--v = verbose
--p = preserve permissions
--z = compress
--f = filename (very important)
--exclude=DIRCECTORY is Recursive
Naming Files with time = filename-$(date +%F-%T)
Recover Files from a TAR File
Recover = sudo tar --xvpzf FILE --C /DIRECTORY
Capital -C = change to directory
-x = extract
Cron Jobs
To Edit the Crontab File = sudo cron --e (first time it will ask you your default editor)
Format = minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday), command
* Wildcard for Every Minute/Day/Hour/Month?Day of Week
Example to Backup Entire Server for 1am Every Morning = 0 1 * * * sudo tar -cvpzf /backup.tar.gz --exclude=/mnt /
Видео Linux Backup with TAR and Cron Jobs канала Eli the Computer Guy
Level: Intermediate
Presenter: Eli the Computer Guy
Date Created: September 21, 2010
Length of Class: 35 Minutes
Tracks
Linux
Prerequisites
Introduction to Linux
Installing Linux
Basic Linux Tasks
VIM for File Editing
Navigation in Linux
Users, Groups and Permissions in Linux
Purpose of Class
This class teaches students how to backup directories using TAR, and demonstrates how to schedule tasks using Cron Jobs.
Topics Covered
Backing Up Directories with TAR
Recovering Directories with TAR
Setting Up Cron Jobs for Scheduled Tasks
Class Notes
Backup Using TAR
Backup = sudo tar --cvpzf backup.taz.gz --exclude/=directory (recursive) PATH
--c = create new file (overwrites old file)
--v = verbose
--p = preserve permissions
--z = compress
--f = filename (very important)
--exclude=DIRCECTORY is Recursive
Naming Files with time = filename-$(date +%F-%T)
Recover Files from a TAR File
Recover = sudo tar --xvpzf FILE --C /DIRECTORY
Capital -C = change to directory
-x = extract
Cron Jobs
To Edit the Crontab File = sudo cron --e (first time it will ask you your default editor)
Format = minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday), command
* Wildcard for Every Minute/Day/Hour/Month?Day of Week
Example to Backup Entire Server for 1am Every Morning = 0 1 * * * sudo tar -cvpzf /backup.tar.gz --exclude=/mnt /
Видео Linux Backup with TAR and Cron Jobs канала Eli the Computer Guy
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
SSH and FTP for Remote AdministrationCRON - task scheduling in linuxTCP/IP and Subnet MaskingIntroduction to Backup SystemsLinux - Change Permissions and Ownership for Files and Folders (chmod, chown, members, groups )Users, Groups and Permissions in LinuxScripting Tar Incremental BackupsTop 10 Linux Job Interview QuestionsLinux Network ConfigurationUnix/Linux Essentials - Backing Up Files & Directories Using TarManaging Users, Groups & Permissions in LinuxIntermediate Bash Commands (grep, sed, awk, tar, less, gzip)Linux Demo: Scheduling Tasks with cronIntroduction to LinuxBasic Linux TasksLinux Tip | How To Automate Tasks using CronBackup and Restore Your Linux System with rsyncLinux - Cron Jobs for Scheduled Tasks (crontab)Navigation in Linux