Go to file
2024-02-19 17:14:41 -05:00
.gitignore fix errors in backup 2023-06-14 18:09:09 -04:00
backup fixed more errors in arg parsing 2024-02-19 17:14:41 -05:00
LICENSE added a license 2023-06-14 20:54:45 +00:00
README.md Update README.md 2023-06-14 21:06:04 +00:00

Backup Tool

This backup script is a Bash tool designed to automate the backup folders listed in .bak files. It scans the same folder as the tool is in and locates .bak files. It then performs backups of the folders specified within those files.

Usage

To use the backup script, follow these steps:

  1. Create a .bak file that contains a list of folders and files to backup. Make sure that the file only contains the paths to the folders and files. Below is a sample of what the .bak files should look like.
/etc/var/apache
/var/www/html
  1. Execute the script using the following command:
./backup

Customization

The backup script can be customized to suit your needs. You can modify the following parameters:

  • Backup Location: By default, the script creates backups in a folder named "backups" within the same directory. You can change this location by modifying the BACKUP_LOCATION variable in the script.
  • Backup Method: The script uses a basic backup method, but you can customize it to use a different method by modifying the appropriate backup commands within the script.

Important Notes

  • Ensure that the script has appropriate permissions to execute (chmod +x backup_script.sh).
  • Double-check that the .bak files are properly formatted and contain the correct folder paths.
  • Make sure you have enough disk space available to accommodate the backup files.

Disclaimer

This backup script is provided as-is without any warranty. Use it at your own risk. The script is intended for personal use and may require modifications to suit your specific requirements.

Feel free to contribute to the script's development or report any issues you encounter. Happy backing up!

License

This backup script is released under the MIT License. You are free to modify, distribute, and use the script for personal or commercial purposes. However, please note that the script is provided "as is," without any warranty or guarantee of its functionality or suitability for any particular purpose.

For more information, please refer to the LICENSE file included with this repository.

Contributions to the script are welcomed and encouraged. If you make any modifications or improvements, please consider submitting a pull request.

Note: The MIT License applies specifically to the script itself and does not extend to any third-party tools or software that may be utilized or distributed alongside the script. Please review the licenses of any third-party components for more information.