Closed powerlocke-ctrl closed 4 years ago
The MySQL-Client is either not installed or not in $PATH
. I suspect the latter one.
I don‘t have experience with Synology, but I had a quick look around and it looks like in a Synology-NAS the MySQL-client is installed under /usr/local/mariadb10/bin
.
If you do get a proper version information after invoking
/usr/local/mariadb10/bin/mysql -V
you can add that directory to your $PATH
and your problem will probably be solved. You’ll find plenty of information on how to do that if you search the internet for linux add dir to path
.
Let me know if that worked for you.
Hey Thansks for help. Following works: I've add a row into file "calcardbackup", with export PATH=$PATH:/usr/local/mariadb10/bin
Now I run sudo -u http ./calcardbackup "/volume1/web/nextcloud" and script backups all needed data.
Would it be possible to same with data from Bookmark-App.
Thanks and best regards!
Cool - good to hear, you got it working.
I‘ve got another suggestion for you though, because modifying the script itself is a bit inconvenient: you have to edit it again and again after every new release of the script.
Additionally there is actually no need to export PATH
in this case.
This should do the trick for you without adding a line to the script:
sudo -u http PATH="$PATH:/usr/local/mariadb10/bin" ./calcardbackup "/volume1/web/nextcloud"
Please do let me know, if that works for you. I might then add a note to the README for other Synology users.
EDIT:
Would it be possible to same with data from Bookmark-App.
I am sorry, calcardbackup is only designed as tool to backup calendar and contacts data. See #23
Hi BernieO,
thanks for reply. Your tip is working, too. This will be easier to handle updates ;-)
Thanks for sharing this scripts with us!
Your tip is working, too. This will be easier to handle updates ;-)
Thanks for testing this - I am sure there will be some Synology users who will appreciate it.
Added according section to both READMEs in 4e48f848eac83440fd166e1afcc23eec2de30ba4
I've installed calcardbackup to my Synology NAS with installed Nextcloud in web-folder. After starting script I get this Error:
Ip Adresse is correct, backup folder has been created by script, but I have no idea, what I have to do now.