Skip to content

paulle86/bashbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—„οΈ Bash Backup Scripts

A collection of simple Bash scripts to automate backups of files, directories, or services (like Pi-hole), using only standard tools available on most Linux distributions.

πŸ“¦ Contents

This repository includes:

  • pihole_backup.sh: Backs up Pi-hole configuration and retains only the 3 most recent backups.

  • (More scripts coming soon...)

πŸ›  Requirements

  • Bash
  • Standard Unix utilities like tar, find, xargs, mkdir, rm, etc.
  • Sufficient permissions to access the files or services being backed up (may require sudo)

πŸš€ Usage

For each script: bash chmod +x script_name.sh ./script_name.sh

To automate via cron: 0 3 * * * /absolute/path/to/script.sh >> /var/log/script.log 2>&1

πŸ”’ Security

Make sure to:

  • Avoid storing sensitive backups in public or unsecured locations.

  • Restrict access to the scripts and generated backup files.

🧾 License

This project is released under The Unlicense: you are free to do whatever you want with this code. It is dedicated to the public domain, with no restrictions.

For more information, visit: unlicense.org πŸ™‹β€β™‚οΈ Contributing

Contributions, ideas, and feedback are welcome! Feel free to open an issue or a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages