From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sanjib Sikder Subject: Re: org back up Date: Thu, 18 Oct 2012 00:56:46 +0530 Message-ID: References: <878vb5q6u8.fsf@mithlond.arda> <87zk3kq5kx.fsf@mithlond.arda> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9341063cb51dc04cc464225 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZH8-0008Qm-6I for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:27:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOZH6-0007d9-2x for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:27:30 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:34315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZH5-0007d5-Pi for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:27:28 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so15476519ied.0 for ; Wed, 17 Oct 2012 12:27:27 -0700 (PDT) In-Reply-To: <87zk3kq5kx.fsf@mithlond.arda> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Teemu Likonen Cc: emacs-orgmode@gnu.org --14dae9341063cb51dc04cc464225 Content-Type: text/plain; charset=ISO-8859-1 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* * On Thu, Oct 18, 2012 at 12:38 AM, Teemu Likonen 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. > --14dae9341063cb51dc04cc464225 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I do not find personal crontab file. how do I create it ? cronta= b -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/b= ash

mkdi= r -p /home/USERNAME/org/backup && \
find $HOME -type f -name '*\.org' ! -path "/home/USERNAME/org/= backup/*" \
=A0=A0=A0=A0-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



<= div style=3D"display:inline">


On Thu, Oct 18, 2012 at 12:38 AM, Teemu = Likonen <tlikonen@iki.fi> 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 th= at
> $HOME is not allowed and I need to give full path ?

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

--14dae9341063cb51dc04cc464225--