{"id":332,"date":"2026-10-02T16:16:27","date_gmt":"2026-10-02T16:16:27","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/ycarp001\/?page_id=332"},"modified":"2026-10-02T20:50:33","modified_gmt":"2026-10-02T20:50:33","slug":"linux-backup-automation-lab","status":"publish","type":"page","link":"https:\/\/sites.wp.odu.edu\/ycarp001\/linux-backup-automation-lab\/","title":{"rendered":"Linux Backup &amp; Automation Lab"},"content":{"rendered":"\n<p>Course: CYSE 270 &#8211; Linux Systems for Cybersecurity<\/p>\n\n\n\n<p>Semester: Spring 2025<\/p>\n\n\n\n<p>Artifact Type: Linux Administration Lab<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lab Overview<\/h2>\n\n\n\n<p>This lab focused on Linux system administration tools to create and automate a backup process. I was tasked with creating a new user and developing a Bash script that backed up the user&#8217;s home directory. The script created a dynamically named archive, moved the resulting backup to the \/var\/backups\/ directory, and compressed the file. I then used crontab to schedule the backup process automatically and verified that the scheduled backups were being created successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">My Work<\/h2>\n\n\n\n<p>I created the Linux user and developed a Bash script to automate the backup process. The script accepted the user input, created variables for the backup filename, used the tar command to archive the user&#8217;s home directory, moved the archive to the designated backup directory, and used gzip to compress the resulting file. I also configured a crontab entry to execute the backup task on a schedule and verified the contents of the backup directory to confirm that the automated process was working as intended.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Artifact<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"471\" src=\"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-content\/uploads\/sites\/38478\/2026\/10\/image.png\" alt=\"Terminal screenshots showing Linux user creation and a Bash backup script\" class=\"wp-image-364\" style=\"object-fit:cover;width:600px;height:650px\" \/><figcaption class=\"wp-element-caption\"><em>Figure 1. Bash script created to automate the backup process.<\/em><\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"194\" src=\"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-content\/uploads\/sites\/38478\/2026\/10\/image-1.png\" alt=\"Terminal screenshot showing scheduled backup verification and compressed backup file\" class=\"wp-image-365\" style=\"width:600px\" \/><figcaption class=\"wp-element-caption\"><em>Figure 2. Verification of the scheduled backup and compressed backup file.<\/em><\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Skills Demonstrated<\/h2>\n\n\n\n<p>This lab strengthened my Linux system administration skills by giving me hands-on experience creating and automating a system backup process rather than performing the backup manually every time. Automation routine processes such as backups can make administrative tasks more consistent and reduce the need for repeated manual actions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Course: CYSE 270 &#8211; Linux Systems for Cybersecurity Semester: Spring 2025 Artifact Type: Linux Administration Lab Lab Overview This lab focused on Linux system administration tools to create and automate a backup process. I was tasked with creating a new user and developing a Bash script that backed up the user&#8217;s home directory. The script&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/ycarp001\/linux-backup-automation-lab\/\">Read More<\/a><\/div>\n","protected":false},"author":30530,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/pages\/332"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/users\/30530"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":5,"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/pages\/332\/revisions"}],"predecessor-version":[{"id":368,"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/pages\/332\/revisions\/368"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/ycarp001\/wp-json\/wp\/v2\/media?parent=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}