To me if it requires complicated shell commands it is not really "done right".
To me if it requires complicated shell commands it is not really "done right".
The snippet GP mentioned includes only shell functions, invocations of restic, and echo commands. How could it be simpler?
Simple for someone who is comfortable with the terminal. Scary for those who are oyherwise familiar with GUIs only.
It makes it hard for me to recommend backup tools to the non-technical people in my life, because they're looking for GUI solutions with the corners rounded off, and I want something crunchy and scriptable.
A lot of backup services (tarsnap comes to mind) prioritize scriptability, as I imagine many people run backups from cron or a systemd timer.
GUIs for simple stuff and 99% of the population, CLIs for hackermans who need the advanced stuff.
# tar cvf /dev/st0 .
restic -r reponame /path-to-files-to-be-backuped
Everything else in the mentioned script is optional stuff for scheduling, removing old backups, etc.