lobaro / restic-backup-docker

A docker container to automate backups with restic
Apache License 2.0
330 stars 114 forks source link

Add WOL support in hooks #74

Closed snyssen closed 1 year ago

snyssen commented 1 year ago

I would like to be able to wake a local server in the pre-backup hook and shut it down once the backup is done using the post-backup hook. The only thing I need for this to work is some form of wake-on-lan client, such as Awake. I thus propose the following modification to the Dockerfile (change is on line number 9):

- RUN apk add --update --no-cache heirloom-mailx fuse curl
+ RUN apk add --update --no-cache heirloom-mailx fuse curl awake

Would this change be okay? I can open a PR if you would like.

niondir commented 1 year ago

I would recommend to just build your own container based on this one and add your dependency. It's does not feel right to add bunch of dependencies for any possible use-case.

As a workaround: You could even install awake inside the post-backup hook if it does not exists.