rm -rf my_directory_name
Be careful.
rm -rf my_directory_name
Be careful.
I have PHP scripts to backup MySQL databases and FTP them to another server.
Edit the crontab file and add your tasks
[code]
crontab -e
…
5 12 * * * php /var/www/mysite/tools/autobackup/run_this_file.php
[/code]
The paths in the PHP script were relative to the user. Needed to add this at the top of PHP scripts to be relative to the script
[code]
chdir(__DIR__);
[/code]