[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org back up

From: Sanjib Sikder
Subject: Re: [O] org back up
Date: Thu, 18 Oct 2012 00:56:46 +0530


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 ..

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



Sanjib Sikder
Ph.D. Fellow
Chemical Engineering
IIT Bombay

On Thu, Oct 18, 2012 at 12:38 AM, Teemu Likonen <address@hidden> wrote:
Sanjib Sikder [2012-10-18 00:32:00 +0530] wrote:

> 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 ?

Ah, I thought that you'd run it from your personal crontab. So yes,
write paths from root's point of view.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]