From 764840127fa9284ebc53cc06e873a8f68fe3b15d Mon Sep 17 00:00:00 2001 From: abyxcos Date: Fri, 24 Sep 2021 21:48:08 +0000 Subject: [PATCH] Add a README. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f86efde --- /dev/null +++ b/README.md @@ -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 +``` + -- 2.38.4