I\'ve written a big sql script that creates a CSV file. I want to call a cronjob every night to create a fresh CSV file and have it available on the website.
Say for
For a job like this I would place it into a bash file, delete the file
#!/bin/bash rm /path/to/backup.csv ./backup_sql_query.sh <<-- This contains the script to backup to CSV.
The better option is to actually add a timestamp though. Disk space isn't expensive in this day and age.