rsync_backups | ||
tar_backup | ||
.gitignore | ||
LICENSE | ||
README.md |
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:
- 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
- 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.