So I'm wondering how can I make a cron job to make influxdb backup every friday at midnigth. In github is an sh file that makes the backup job, here is the link: InfluxDB Backup-Restore
Thanks.
Influxdb supports backup and restore, documentation available here
Should be straight forward to add a crontab for it.
So I use this repo https://github.com/eckardt/influxdb-backup.sh and make the crontab job to make the periodic backup.
Creating a jenkins job is also an option. Easy and stable.
Related
I'm trying to find a tool where you can easily monitor cronjobs for the company I work at. Rundeck seems like the perfect tool for this but I can't figure out if it's possible to integrate the existing cronjobs into Rundeck. It's too much work to do this manually because there are hundreds of them.
If you now another tool that can do this feel free to recommend!
I'd rather want it to be open source but if it's paid and it works correct I'm open to it.
Rundeck works as a "very enhanced cron replacement" maybe the best approach in your case is to migrate your cron jobs to Rundeck and use the notification for monitoring. This looks like a good starting point for you, donĀ“t forget to visit the official documentation.
What Mega mentions is correct, rundeck can be used as a replacement for cron.
Even better, there is no need to configure all of those manually: Rundeck allows you to import job definitions via API call.
Steps:
Get rundeck installed
Set up a job to run one of your cron jobs manually
Export that job
Use a script to make many copies of that file, that each contain a different item from cron*
Import all those files via API call
*You'll need to change at least the name and workflow (called sequence commands file - you'll be able to see based on the workflow step you configured)
I have a large landscape of servers. There are logical groupings for some servers (clusters). I'd find a way to run crontabs on specific clusters. Specifically, I'd like to have a centralized location were I can edit their crontabs at the same time.
Currently, what I'm doing is accessing each server and editing their crontabs the manual way.
Thanks
Maybe you should consider a tool like Ansible which would allow you to manage the cron entries or cron files locally, and distribute them to your servers.
Ansible is quite easy to learn and all you need is Ansible, Python and a working ssh connection.
I have did some search for this question, but something useful didn't came out. So, i decided to create a new thread.
Problem Description
I am making CLI for installation of our server, so one of the pre-requisite is that cron job should be running. So, to accomplish same, i want to add some cron jobs and restart the service. Is it possible via Node.js
Checkout this module, will this help you?
https://github.com/ncb000gt/node-cron
I see there're so many threads regarding job scheduling and it seems it takes me long time to find out which one is what I'm looking for.
So let me describe what I need, and if there are related thread I'd be grateful if you point me one.
I'm planning to create a scheduled task on a debian machine, to run every, let's say, 15 mins to download files from ftp server to some local folder.
What's tools/programs will I need for this?
I think I will need to use some programming language to code a logic for downloading files, so the issue how to make this program run as a scheduled task.
Please edit my thread if you find it's not good expressed.
Thanks in advance.
Use cron
edit your /etc/crontab to :
*/15 * * * * /path/to/file
in /path/to/file write your ftp command:
ftp google.com
I'm looking for some backup solution. My request is pretty simple:
Source - FTP credentials (ftp://user:pass#server.tld/dir1/dir2)
Destination on local HDD (/var/backup/server-tld)
Possibility of packing to archive (tar.gz/zip)
Plan this "script" as a cron job with defined period (e.g. once a day)
I know, that all this can be done using bash scripts, but it seems to be a little bit uncomfortable.
I don't believe there's no simple solution for this.
I've finally found a really "simple-to-use" solution:
ncftp
http://www.cyberciti.biz/tips/linux-download-all-file-from-ftp-server-recursively.html