-
Hi, I installed remark42 on my old server a long time ago. I had to urgently save some data and reset everything. I had a folder in /var/www/remark42 with a remark42.conf file and a /var folder inside which there was a /backup folder containing all the daily backups. I don't remember where I had the executable, but I'm sure I didn't install it with Docker. On the new server, I tried to reproduce the setup. I downloaded the executable and this time I put it directly in /var/www/remark42, and running it with the secret and url parameters works fine (I had saved the nginx configuration). At this point, I tried to restore the backup but I can't understand the error:
Somehow it is looking for a file named var/backup/userbackup-remark-20230406.gz while mine is var/backup/backup-halon.cc-20230330.gz. I have the impression that the executable does not see the environment around it, so neither remark42.conf. What can I do in this case? How do I specify to remark which is the root folder of the files it should use? Thanks a lot!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I fixed it by creating the system service
it is a solution found somewhere on web and of which I have not found any mention in the documentation. In fact, from the documentation there is no way to understand how to pass the parameters of the config files and the workdir to the executable |
Beta Was this translation helpful? Give feedback.
I fixed it by creating the system service
/etc/systemd/system/remark42.service
to which I passed the various references, like this:it is a solution found somewhere on web and of which I have not found any mention in the documentation. In fact, from the documentation there is no way to understand how to pass the parameters of the config files and the workdir t…