This is what I do. $ crontab -l
30 2 * * * sudo /home/influxDbBackup.sh > /tmp/influxdbbackup.log 2>&1 Then inside the script it does the backup sudo influxd backup -database mydb /backupdirectory &> backup.log On Tuesday, November 15, 2016 at 12:16:12 PM UTC-5, Sean Beckett wrote: > > Can you share the actual crontab config? > > Cron has no environment, unlike a user shell. Are you specifying the full > path for influxd? Perhaps there's a missing environment variable? > > > > On Tue, Nov 15, 2016 at 2:23 AM, <[email protected] <javascript:>> > wrote: > >> Hi Guys, >> >> I'm struggling with the following, >> >> influxdb ver 1.0.2 >> OS EL7.2 >> >> Using the following to command to backup >> influxd backup -database test /var/backups/influxdb >> >> which works and it backs up all the meta and shards. >> >> But using the same command in crontab or even cron file, I only get the >> meta backed up. >> SO, >> >> am I missing something obvious? >> >> Thanks, >> Danie >> >> -- >> Remember to include the version number! >> --- >> You received this message because you are subscribed to the Google Groups >> "InfluxData" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/influxdb. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/influxdb/16571b1a-6f28-471c-bc6c-813746a5c67b%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Sean Beckett > Director of Support and Professional Services > InfluxDB > -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/b2e440f3-636b-4b6f-8737-5e7c0f22d78b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
