Hi,
I do not find personal crontab file. how do I create it ? crontab -e says my personal file is not there
If I want to run it as root then how do modify the following code as it is nor working ..
-------------------
#!/bin/bash
mkdir -p /home/USERNAME/org/backup && \
find $HOME -type f -name '*\.org' ! -path "/home/USERNAME/org/backup/*" \
-exec cp -t /home/USERNAME/org/backup/ \{\} \;
echo "Daily Org Files Backup Successful: $(date)" >> /home/USERNAME/mybackupOrg.log
-----------------------------
Thanks
-----------------------------
Sanjib Sikder
Ph.D. Fellow
Chemical Engineering
IIT Bombay
Sanjib Sikder [2012-10-18 00:32:00 +0530] wrote:Ah, I thought that you'd run it from your personal crontab. So yes,
> Even after 26th minute, there is no sign of the code in work. Is it that
> $HOME is not allowed and I need to give full path ?
write paths from root's point of view.