Comments (6)
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.
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.
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.
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.
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.
@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)
- InfluxDb data not in backup HOT 3
- menu.sh error HOT 2
- unable to stop and remove Hassio containers in IOTstack HOT 1
- zigbee2mqtt
- menu.sh just checks for current version HOT 2
- Home Assistant Native keeps coming back after removal HOT 1
- Zigbee2MqttAssistant: Unable to connect to MQTT server mosquitto HOT 2
- chown -R 1883:1883 ./volumes/mosquitto does not accept "Y" HOT 1
- ImportError: No module named 'blessed' HOT 1
- running rtl_433 container problem HOT 7
- influxdb.conf ... changing the retention of data HOT 1
- how to retrive an old image HOT 5
- How Do I get rid of Pihole ? I tried everything. HOT 5
- IOT stack vs raspberry pi OS bullseye HOT 5
- installation script incorrectly prompting version types HOT 2
- Concerned about prerequisites HOT 3
- pi.hole only works intermittently. HOT 3
- Cannot start service nodered /dev/ttyAMA0 HOT 2
- can't install new nodes in Node-Red due to no connection of node-red container with internet HOT 1
- i2c in nodered HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotstack.