RPi3 / scheduled backup of sd card / stop openhab service?

Coming back to my question: how to use raspibackup without stopping or starting service

When I try it with:
sudo /usr/local/bin/raspiBackup.sh -a: -o: /storage/backup

I receive an error message:
??? RBK0089E: Unbekannte Option -a:.
— RBK0091I: ‘raspiBackup.sh -h’ liefert eine detailierte Beschreibung aller Scriptaufrufoptionen.

What is my mistake?

Looking at the docs linked above, it seems you may need spaces before the colons. Like this:

sudo /usr/local/bin/raspiBackup.sh -a : -o : /storage/backup

Also could want quotes around : like:

sudo /usr/local/bin/raspiBackup.sh -a ”:” -o “:” /storage/backup

I haven’t tried these, just read the docs linked by @sihui - I’m in the “Amanda tutorials seem too complicated” group so I’m curious if this function could be a good backup.

Note FAQ 18 on that page has a list of recommended services to stop and restart when running raspiBackup. Seems like samba is the only one I’m running that is recommended to stop.

You need to specify all needed parameters, please read the linked docs.
My working config:
sudo /usr/local/bin/raspiBackup.sh -t rsync -a: -o: -L 2 -k 3 -s ssmtp -e xxxxx@yyyyy.de /media/intenso3tb/rpi_backups

or use /usr/local/etc/raspiBackup.conf, way easier …

Thanks for your support.

The following is working:
sudo /usr/local/bin/raspiBackup.sh -a “:” -o “:” /storage/backup/

1 Like