Skip to content

TusharKcode/linux-final-backup-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Final Backup Script

(Practice Purpose only)

This project contains a shell script backup.sh that automates the process of backing up files modified within the past 24 hours from a target directory to a destination directory.


Features

  • Uses timestamp to detect modified files
  • Archive them into a timestamped .tar.gz file
  • Uses arrays and conditionals
  • Can be run manually or automated using cron

File Structure

final-backup/
|--- backup.sh
|--- README.sh
|--- .gitignore
|--- important-documents/
|--- backup-<timestamp>.tar.gz

Usage

./backup.sh <target_directory> <destination_directory>
./backup.sh important-documents .

##Author

Tushar Kumar

About

A full-featured backup script using shell scripting and cron, created as part of a Linux shell scripting final project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages