From: Teemu Likonen <tlikonen@iki.fi>
To: Sanjib Sikder <sanjibju2002@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org back up
Date: Wed, 17 Oct 2012 22:41:49 +0300 [thread overview]
Message-ID: <87r4owq41u.fsf@mithlond.arda> (raw)
In-Reply-To: <CAL1SgUobZY+d4ZwUSuX7Bfw_dewhgLECORcpC__UVTikh9sX1A@mail.gmail.com> (Sanjib Sikder's message of "Thu, 18 Oct 2012 00:56:46 +0530")
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" {} +
next prev parent reply other threads:[~2012-10-17 19:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 18:25 org back up Sanjib Sikder
2012-10-17 18:41 ` Teemu Likonen
2012-10-17 19:02 ` Sanjib Sikder
2012-10-17 19:08 ` Teemu Likonen
2012-10-17 19:26 ` Sanjib Sikder
2012-10-17 19:41 ` Teemu Likonen [this message]
2012-10-17 19:36 ` Nick Dokos
2012-10-17 19:38 ` Sanjib Sikder
2012-10-18 0:14 ` Suvayu Ali
2012-10-17 19:25 ` Achim Gratz
2012-10-17 20:05 ` Russell Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r4owq41u.fsf@mithlond.arda \
--to=tlikonen@iki.fi \
--cc=emacs-orgmode@gnu.org \
--cc=sanjibju2002@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).