hi all
i have a problem with crontab in fedora 17
a few months ago i have configure the crontab with several lines to backup some files, databases etc etc
now i want to edit the crontab but is empty
crontab -e
cronta -l
all empty
but the strange is that the backup is still runing every days
in the folder /var/spool/cron i have the user file with 0 bytes
where is my file?
I want to run a command/shell script say script.sh from 1AM to 2AM per minute. After observing that crontab can't work it out 'per sec' I had to go with 'per min'.
Basically, My server.sh file takes backup of my database on server. This is done by three text files with names of tables in it, hence creating three backup archives.
I have the following bash script:
#!/bin/bash
mysqldump -u ******** -p******** --all-databases | gzip > /home/srvlinux01/MySQLBackups/database_$(date +\%Y-\%m-\%d).sql.gz
which is located in /home/srvlinux01/MySQLBackups/ as backup.sh with the following permissions
-rwxr--r-- 1 root root 134 feb 27 12:48 backup.sh
I've set up a cronjob on sudo crontab -e to run it every d
the way that i use to backup my server is using the script below in ssh.
mysqldump --opt -Q -u username -p password > /var/www/squiro/sql/database.sql
but i want to set the server backup everyday at 1pm in same folder.
is that set it in crontab-e?
how to set it?
For example I want to schedule task using crontab:
*/2 * * * * /root/scripts/backup.sh
But nothing happens, backup.sh is not executed. Who can help me?
I've got a Windows Server and I get Windows Server Backup to backup all the files every day. I don't however have a system image so I cannot use that.
I've tried just copying the database files into the MySQL Data folder, but most/all of the tables are missing (wordpress). Is there any other way I could recover this data?
I believe it was using InnoDB.
I have written a shell script that creates a backup of my MySQL database.
I want a complete backup of my server. It's CentOS 5.
My thoughts: I can literally take every single file on the server and back it up, and I'll have a backup of everything. Server config, my PHP files, MySQL DB, EVERYTHING...
Hello.
I need to make a script to crontab what check one folder and copy to another but I want that a file what will be copyed will be copyed to folder what is named to current month.
right now I'm using this crontab script
Code:
find /media/-Arhiiv-/0day/2012/ -maxdepth 2 -mindepth 2 -type d -mtime -7 -exec cp -r {} /home/user/Dropbox/Share/ \;
but what i want to make is to use python