You can use a docker container for running restic.
All you need is:
-Docker Container with restic (own one or from dockerhub)
-User Scripts to run backups cyclic
-Unassigned devices (if you want to copy to ext drive)
Here is my actual progress. At the moment iam wondering why the backup is so slow... And copying isn´t working as expected..
Backup script:
pw="/mnt/disks/Samsung_Flash_Drive_FIT/10_Scripte/11_ResticBackup/.resticpwd"
src="/mnt/disk2/HDD2_4TB/99_ResticRepo/ backup /mnt/disk1/HDD1_3TB/10_Homes"
dest="/mnt/disk2/HDD2_4TB/99_ResticRepo"
tag="HomesFolder"
#Backup and clean repo
docker exec debian restic -r $dest backup $src --tag $tag --password-file $pw
docker exec debian restic -r $dest forget --keep-within 2m --prune --password-file $pw
Copy script --> Internal Backup to USB drive if connected
#
srcPath="/mnt/disk2/HDD2_4TB/99_ResticRepo"
dstPath="/mnt/disks/JMicron_Generic"
#Waiting time to secure mount accomplished
sleep 10
beep -f 587.3 -l 122 -d 0 -n -f 370 -l 122 -d 0 -n
rsync -av --stats "${srcPath}" "${dstPath}" &
pid=$!
# If this script is killed, kill the `rsync'.
trap "kill $pid 2> /dev/null" EXIT
# While copy is running...
while kill -0 $pid 2> /dev/null; do
# Do stuff
#echo "Rsync is running"
sleep 1
done
beep -f 587.3 -l 122 -d 0 -n -f 370 -l 122 -d 0 -n
# Autounmount, wenn nicht gewuenscht, einfach ein # davor setzen.
sleep 120
umount -f -l "${backup_root_path}"
# Notification
/usr/local/emhttp/webGui/scripts/notify -i normal -s "Disk ausgehangen." -d "Backup abgeschlossen, Medium kann entfernt werden."
# Disable the trap on a normal exit.
trap - EXIT