logrotate for z-way-server
-
@akbooer So I'm trying to do rotated backups the openLuup way, and expected backup to be an action. Apparently not. What is the best way to call a local cgi?
luup.inet.wget(http://127.0.0.1/backup.cgi)?
@prophead said in logrotate for z-way-server:
expected backup to be an action. Apparently not.
Yes, I would have expected that too... except that we are talking about a Vera feature here, which is used by the AltUI interface, so it has to be done this way to be compatible.
What is the best way to call a local cgi?
In this case, you need:
luup.inet.wget "/cgi-bin/cmh/backup.sh?"
HTH
-
Can't seem to get the SendToTrash action to work either, heres my attempt:
luup.call_action ("openLuup","SendToTrash",{Folder="/etc/cmh-ludl/backup",MaxDays="",MaxFiles="10",FileTypes="lzap"},2)
I really wish you would put examples in your documentation.
the log files showluup_log:2: applying file retention policy... luup_log:2: ...finished applying file retention policy
but the files are still there.
Any help?
|-<:)@prophead said in logrotate for z-way-server:
Can't seem to get the SendToTrash action to work either, heres my attempt:
Yes indeed, another appallingly badly documented feature.
In order to prevent an ill-advised programmer from wreaking havoc, absolute paths are not allowed. So you should use:
luup.call_action ("openLuup","SendToTrash",{Folder="backup",MaxDays="",MaxFiles="10",FileTypes="lzap"},2)
In addition, certain key folders are denied access, including
openLuup, cgi, cgi-bin, cmh, historian, whisper, files, icons, www
I will try to improve the documentation.
-
@prophead said in logrotate for z-way-server:
Can't seem to get the SendToTrash action to work either, heres my attempt:
Yes indeed, another appallingly badly documented feature.
In order to prevent an ill-advised programmer from wreaking havoc, absolute paths are not allowed. So you should use:
luup.call_action ("openLuup","SendToTrash",{Folder="backup",MaxDays="",MaxFiles="10",FileTypes="lzap"},2)
In addition, certain key folders are denied access, including
openLuup, cgi, cgi-bin, cmh, historian, whisper, files, icons, www
I will try to improve the documentation.