Git Product home page Git Product logo

Comments (6)

gcgarner avatar gcgarner commented on May 24, 2024

Hello Collin

Just to confirm if you search for "docker" in the search box it doesn't return any results?

I have modified that backup script in the last few days (i removed the sudo in front of dropbox uploader and added some error handling if you dont have influxdb), please check that yours is up to date script

Have you uncommented the last line where it calls the dropbox-uploader?

from iotstack.

Collin7 avatar Collin7 commented on May 24, 2024

Hi Graham, I have indeed updated when I saw you updated the script. I have also uncommented the line in dropbox uploader. The strange thing is that the cron appears to work, instead of outputting to /dev/null. I output to a log file from the crontab to see what is happening, it prints out all the same stuff as when I ran it manually, till it completes uploading to dropbox, but if I check the date modified on dropbox, the file is not changed/uploaded. I am thinking it might have something to do with permissions. I have made the scripts executable (not sure if required.)
Since it completes successfully, I am stumped.
If I run manually again it completes and the date modified in dropbox changes.

Iv tried chown for my user on all IOTstack directorys, iv tried chmod 777 (bad practice I know) just tried.

from iotstack.

gcgarner avatar gcgarner commented on May 24, 2024

That is very odd indeed. I just scheduled mine to go off now and it was successful.
perhaps it is a permissions issue.
what you could do is move of the docker.tar.gz into your home directory (this was a suggestion from @Paulf007 ) . chown the file with sudo chown pi:pi ~/docker.tar.gz and then let the dropbox-uploader upload it.

in your crontab do you call the script with sudo or not? (preferably without sodu)

from iotstack.

Collin7 avatar Collin7 commented on May 24, 2024

So Im not sure what fixed it, but I deleted the script, pulled it again, and also deleted dropbox uploader and reinstalled it. And not the back up is working from crontab. Thanks for the help.

from iotstack.

Paulf007 avatar Paulf007 commented on May 24, 2024

Just a thought but as you copy as the file as pi it should not be necessary to change the file permissions.
I have played with the scrip a few ways and in some cases, I have found that it will copy the files in the Apps folder of Dropbox with the folder extensions that you added so maybe have a look there?

Personally I have found that to make a daily backup is a bit of overkill unless you write a lot of data to the DB. So I do a backup once a week with a date in the file. Keep in mind that I do copy the files to a temp folder then upload it to dropbox and delete thereafter. I don't think that will kill the sd card.
Writing data to a db for graphs is much more brutal.
I know the guys at EmonCms are doing the writing of the data through redis to reduce the read-writes but that's way above my head so I have never bothered with that.
If you want to log data why not get a small online server, I use Virmac and at $2.25 for 512 mb ram it is not bad at all.

from iotstack.

gcgarner avatar gcgarner commented on May 24, 2024

@Paulf007 Just had a look at Virmac and they are really cheap. I was thinking of linode in the past but they are $5 a month for their cheapest plan

I agree, daily backups are overkill for me. I would set it at one a fortnight

from iotstack.

Related Issues (20)

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.