Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rimubytes/backup-script
A bash script that creates a compressed, timestamped backup of a specified directory and saves it to a destination directory.
https://github.com/rimubytes/backup-script
bash-script
Last synced: about 2 months ago
JSON representation
A bash script that creates a compressed, timestamped backup of a specified directory and saves it to a destination directory.
- Host: GitHub
- URL: https://github.com/rimubytes/backup-script
- Owner: rimubytes
- License: mit
- Created: 2024-06-10T07:53:18.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-12T07:58:06.000Z (7 months ago)
- Last Synced: 2024-09-11T17:55:41.716Z (4 months ago)
- Topics: bash-script
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# backup-script
### Overview
Backup Script is a bash script that creates a compressed, timestamped backup of a specified directory and saves it to a destination directory. It logs the backup process and provides error handling to ensure reliable backups#### Features
- Creates a timestamped backup of the source directory
- Compresses the backup using 'tar' and 'gzip'
- Logs the backup process and any errors
- Supports specifying source and destination directories as arguments### Usage
1. Clone or download the repository
2. Make the script executable:
```bash
chmod +x backup_script.sh
```
3. Run the script with the source and destination as arguments:
```bash
./backup_script.sh /path/to/source_directory /path/to/destination_directory
```#### Logging
The script logs its actions to a file named 'backup-script.log' in the current directory. The log includes information about the start and completion of the backup and any errors encountered