Skip to content

shehabghazy/backup-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Daily Backup Script

Description

Automates system backups daily with log rotation and email alerting on failures.

Configuration

Edit the following variables in daily_backup.sh:

  • SOURCE_DIR: Directory to back up.
  • BACKUP_DIR: Directory to store backups.
  • BACKUP_RETENTION_DAYS: Number of days to keep old backups.
  • LOGS_RETENTION_DAYS: Number of days to keep old logs.
  • EMAIL_DIST: Email to notify on errors.

Usage

Make the script executable:

chmod +x backup-script.sh

To test it manually:

./backup-script.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages