
▲ 13 r/bash
Beginner here — A personal backup script, would love feedback
Not an experienced programmer. I wrote a Bash script to back up my files to an external drive, Learnt a lot doing that, and I'm posting here because I'd like more experienced people to look at it and tell me what I'm still missing.
The basic idea: it uses rsync with --link-dest to make daily snapshot backups. Each backup looks like a full copy of your files, but files that haven't changed are hard-linked instead of copied again, so it doesn't waste disk space. Something similar to "Time Machine".
Repo is here if anyone wants to look at the code or try to break it: https://github.com/UFpondiboy/linux-snapshot-backup
Any feedback — big picture or nitpicky — is genuinely welcome. I'd rather find out what's wrong now than trust it blindly.
u/No_Condition4387 — 3 days ago