From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] crontab backup
Date: Wed, 17 Sep 2014 09:43:28 +0100 [thread overview]
Message-ID: <20140917094328.6fd8f6f8@digimed.co.uk> (raw)
In-Reply-To: <20140917013036.GC7543@syscon7>
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
On Tue, 16 Sep 2014 19:30:36 -0600, Joseph wrote:
> I'm trying to backup crontab from various boxes to files, so I'm using
> (run once a month) 11 01 * * 5 crontab -l
> > /home/joseph/business/backup/crontabs/syscon7_joseph_crontab
>
> but I can from bash: cannot overwrite existing file
Do you have noclobber in your shell options? If so, replace > with >| to
overwrite files. Or use tee, which will happily overwrite files with no
consideration of their type, content or importance :(
--
Neil Bothwick
Growing old is mandatory; growing up is optional!!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
prev parent reply other threads:[~2014-09-17 8:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-17 1:30 [gentoo-user] crontab backup Joseph
2014-09-17 2:22 ` [gentoo-user] " Jouni Kosonen
2014-09-17 2:57 ` Joseph
2014-09-17 8:43 ` Neil Bothwick [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140917094328.6fd8f6f8@digimed.co.uk \
--to=neil@digimed.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox