Project Overview
Part of the Fundamentals section of Coddy's Terminal journey. Lesson 74 of 82.
Challenge
EasyIn this project you'll build backup.sh, a shell script that backs up a folder. Lesson by lesson, the script will ask which folder to back up, create a backup folder, copy the files into it, add a timestamp to the folder name, and finish with a summary message.
The folder you'll back up is called documents. Use ls to list the files inside it (ls documents).
In the upcoming lessons, you'll build the script one step at a time.
Try it yourself
All lessons in Fundamentals
4Directories
Create A DirectoryCopy A DirectoryMove And Rename A DirectoryDelete A DirectoryRecap - Directory Operations7File Content
Head And TailWord CountSort CommandUnique CommandGrep BasicsGrep With FlagsRecap - Text Detective2Navigation
Print Working DirectoryList FilesChange DirectoryAbsolute vs Relative PathsHome And Root DirectoryRecap - Find Your Way8Redirection
Standard OutputOverwrite To A FileAppend To A FileStandard InputStandard ErrorRecap - Log Builder11Permissions
Understanding PermissionsReading PermissionsChmod With NumbersChmod With SymbolsFile OwnershipRecap - Lock It Down14Backup Script Project
Project OverviewGetting The Source Path6Wildcards And Patterns
The Star WildcardThe Question Mark WildcardBracket WildcardsCombining WildcardsRecap - Selective Operations9Piping
What Is A PipeChaining Two CommandsChaining Multiple CommandsPipe With GrepRecap - Data PipelinePractice on your own: Terminal playground