Script to run backups without GUI

I wrote a bash script kopia.sh for KDE konsole to run Kopia without RAM consuming GUI for local backups. The GUI can be used to setup the repository, but the backups are made by CLI with a systemd timer.
It can be called without arguments, so user can make a choice, or with arguments to be called by the GUI or other progs.
You have to edit the path to two backup media in the script, if you want to make copies of the snapshot.
Save kopiacli.sh in your ~/.config/kopia/ directory
Save kopiacli.timer and kopiacli.service in ~/.config/systemd/user/
Edit the path to your kopiacli.sh in kopiacli.service
Activate the timer with: systemctl --user enable --now kopiacli.timer

Maybe it will be useful for some people. If there are better bash programmers than me here, I would be grateful for any suggestions for improvements. The files should be editable and new ones should be able to be uploaded.

1 Like