Git Product home page Git Product logo

Comments (5)

powerlocke-ctrl avatar powerlocke-ctrl commented on June 9, 2024 1

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!
Unbenannt

from calcardbackup.

powerlocke-ctrl avatar powerlocke-ctrl commented on June 9, 2024 1

Hi BernieO,

thanks for reply.
Your tip is working, too. This will be easier to handle updates ;-)

Thanks for sharing this scripts with us!

from calcardbackup.

BernieO avatar BernieO commented on June 9, 2024

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.

from calcardbackup.

BernieO avatar BernieO commented on June 9, 2024

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

from calcardbackup.

BernieO avatar BernieO commented on June 9, 2024

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 4e48f84

from calcardbackup.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.