~abyxcos/backup_scripts

764840127fa9284ebc53cc06e873a8f68fe3b15d — abyxcos 1 year, 4 months ago 6a895c8 master
Add a README.
1 files changed, 19 insertions(+), 0 deletions(-)

A README.md
A README.md => README.md +19 -0
@@ 0,0 1,19 @@
# Backup scripts
A collection of tools, scripts, and utilities to back up various things to my NAS. 

## backup_git.sh
Takes a `repos.txt` file with one repo or comment per line. Ignores any comments. Checks out the repo if it doesn't exist then pulls any updates. Use with cron to back up your (or any interesting) repos nightly. Using multiple remotes with git is always a possibility, but this removes the need to configure that on every machine you work with. 

repos.txt:
```
# Sourcehut
git@git.sr.ht:~abyxcos/backup_scripts
# Github
https://github.com/openzfs/zfs.git
```

Usage:
```
30	1	*	*	*	cd /backups/git && /bin/sh backup_git.sh
```