Versioncontrol a Webdav share
madflex.de·1d
Flag this post

For about six months I’ve been using a WebDAV share to view and edit OrgMode files on Android and in Emacs (post about it). The folder is included in my daily backup and I haven’t lost any data so far. However, I’d like version control and possibly to run a Forgejo Action on the contents, so the data should be committed to a Forgejo repository.

The first step is to set up Git and pushing to Forgejo on the Raspberry Pi running the WebDAV Docker container. My initial plan was to run a cron job that commits and pushes changes, but systemd can trigger scripts on change, so I started with that.

Git setup

I created a repository named “webdav-backup” on my private Forgejo server. A private GitHub repository should work similarly.

To …

Similar Posts

Loading similar posts...