Compare commits

..

5 commits

Author SHA1 Message Date
first 2fcac583dd update script name 2025-01-25 16:57:10 +00:00
first 772feb8286 enhance code blocks 2025-01-25 16:55:56 +00:00
first c3e8da47fa Update README.md 2025-01-24 07:42:13 +00:00
first 2b427010fe improve init desc 2025-01-24 07:41:30 +00:00
first 5c258bac2f Merge pull request 'fully independent chunking for resilient disc recovery' (#1) from chunking into master
Reviewed-on: #1
2025-01-24 07:36:54 +00:00

View file

@ -1,5 +1,12 @@
# backup2mdisc # backup2mdisc
**Now you can enjoy a _self-contained_ backup on each disc without chain-dependency across your entire multi TB backup set!**:
- **Independently decryptable** (and restorable) archives on each M-Disc.
- Automatic ISO creation and optional disc burning in the same script.
- **Fast compression via lz4**.
---
## Purpose: ## Purpose:
1. Scans all files in a source directory. 1. Scans all files in a source directory.
2. Groups them into "chunks" so that each chunk is <= a specified size (default 100GB). 2. Groups them into "chunks" so that each chunk is <= a specified size (default 100GB).
@ -45,11 +52,17 @@
--- ---
## Usage: ## Usage:
`./backup_in_individual_chunks.sh /path/to/source /path/to/destination [CHUNK_SIZE] [--create-iso] [--burn]` ```
./backup2mdisc.sh /path/to/source /path/to/destination [CHUNK_SIZE] [--create-iso] [--burn]
```
## Examples: ## Examples:
`./backup_in_individual_chunks.sh /home/user/data /mnt/backup 100G --create-iso` ```bash
`./backup_in_individual_chunks.sh /data /backup 50G --burn` ./backup2mdisc.sh /home/user/data /mnt/backup 100G --create-iso
```
```bash
./backup2mdisc.sh /data /backup 50G --burn
```
## Dependencies: ## Dependencies:
- `bash` - `bash`
@ -98,12 +111,3 @@
4. **Cross-Platform** 4. **Cross-Platform**
- On FreeBSD or macOS, you might need to tweak the commands for hashing (`sha256sum` vs. `shasum -a 256`) or ISO creation (`mkisofs` vs. `genisoimage`). - On FreeBSD or macOS, you might need to tweak the commands for hashing (`sha256sum` vs. `shasum -a 256`) or ISO creation (`mkisofs` vs. `genisoimage`).
- For burning, Linux uses `growisofs`, macOS uses `hdiutil`, and FreeBSD may require `cdrecord` or another tool. - For burning, Linux uses `growisofs`, macOS uses `hdiutil`, and FreeBSD may require `cdrecord` or another tool.
---
**Now you can enjoy the best of both worlds**:
- **Independently decryptable** (and restorable) archives on each M-Disc.
- Automatic ISO creation and optional disc burning in the same script.
- Fast compression via lz4.
This gives you a **self-contained** backup on each disc without chain-dependency across your entire 2TB backup set!