Closed fama closed 1 year ago
I guess there are two options:
@fama, do you have any information about the plugins if the call any hooks when creating files? I think this would be the clean solution. Plugins should call hooks and other plugins can react to it.
I looked at the code and with my very limited php experience, it seems:
PLUGIN_MOVE_MEDIA_RENAME
. Not sure if this is helpful.I do like the periodic add/commit solution because:
plugin»gitbacked»ignorePaths
. All the other newly created pages and media files get backed up upon creation/update anyway. plugin»gitbacked»periodicPull
. Maybe a plugin»gitbacked»periodicAddCommit
as an option may be helpful to prevent missing backups.I see, maybe as an optional feature it could solve some issues, true. @fama, would you be up to develop this feature and send a Pull Request? It would help the project and the community a lot. I can also give some guidance when needed.
at least we should find this one https://github.com/woolfg/dokuwiki-plugin-gitbacked/commit/8457ba7e9b7c6f553a9c104f91ea1d6cb48a5c13
I feel stuck when submit. Every submit need wait at least 5 seconds.
When pushAfterCommit
not checked, only need less then 40ms.
So, for performance reason, please support periodic push.
Or, is there some alternative method to push commit?
If I set pushAfterCommit
to false
, when to push commit?
hey @annProg, thanks for the input. I think it would help multiple people. do you want to implement it?
hey @annProg, thanks for the input. I think it would help multiple people. do you want to implement it?
I have implemented periodic push with crontab, and it works quite well, maybe there is no need to implement it in the plugin
also a good solution @annProg , especially a pragmatic one. I will close the issue for now, but can be reopened at any time.
We have two plugins that gitabacked fails to detect:
I think the solution may be to periodically add all files in the
pages
andmedia
folders. Similarly as doing periodicgit pull
if enabled in the configuration.