• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux - Crontab

cronoxhere

Banned User
Joined
Jun 27, 2009
Messages
291
Reaction score
2
Hi.. I'm trying to use crontab for a backup but I want it to execute a line dialy and save the log... I was trying something like this:

Code:
0 0 * * * line to execute here > file.sql

It works good, the problem is when it execute for second time, it just replace the file.sql.. so I was thinkinh in change the name to something like:

Code:
0 0 * * * line to execute here > day-month.sql

How can I do that?
 
use date command:
Code:
0 0 * * * line to execute here > `date +%d-%m-%y`.sql
 
So how exactly would we do to make it mysqldump once a day?

Red
 
Last edited:
Thanks Migxxx. I'll let you know how it works tomorrow!

Red
 
Back
Top