From mboxrd@z Thu Jan 1 00:00:00 1970 From: Teemu Likonen Subject: Re: org back up Date: Wed, 17 Oct 2012 22:41:49 +0300 Message-ID: <87r4owq41u.fsf@mithlond.arda> References: <878vb5q6u8.fsf@mithlond.arda> <87zk3kq5kx.fsf@mithlond.arda> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZV3-0007Uk-E2 for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:41:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOZV2-0003U0-2C for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:41:53 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:59596 helo=kirsi1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZV1-0003TV-Nb for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:41:51 -0400 In-Reply-To: (Sanjib Sikder's message of "Thu, 18 Oct 2012 00:56:46 +0530") 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: Sanjib Sikder Cc: emacs-orgmode@gnu.org Sanjib Sikder [2012-10-18 00:56:46 +0530] wrote: > I do not find personal crontab file. how do I create it ? crontab -e says > my personal file is not there With "crontab -e" in Debian system. > If I want to run it as root then how do modify the following code as > it is nor working .. You should probably read the manual page of "find" and learn all the relevant options. But here's my new version which uses full paths. #!/bin/sh dir=/home/USERNAME target=$dir/org/backup mkdir -p "$target" && \ find "$dir" -type f -name '*.org' ! -path "$target/*" \ -exec cp -t "$target" {} +