blob: 74861ce46ff17f10e80c857f3f980d63ea0f65c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# git-snapshot
A command-line tool for backing up git repositories to Amazon S3.
## Features
- Backs up multiple git repositories to S3 using git bundles
- Tracks backup state using checkpoint tags
- Write-ahead logging (WAL) for backup operations
- Only creates new backups when changes are detected
- Configurable S3 bucket and prefix paths
## Usage
```bash
gitsnap backup <repositories-dir> <s3-bucket> [-p PREFIX]
```
Where:
- `repositories-dir`: Directory containing git repositories to backup
- `s3-bucket`: Name of the S3 bucket for storing backups
- `-p, --prefix`: Optional prefix for objects in S3 (default: 'gitsnap')
## Requirements
- Python 3
- boto3
- sh
|