Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] crontab backup
Date: Wed, 17 Sep 2014 08:43:45
Message-Id: 20140917094328.6fd8f6f8@digimed.co.uk
In Reply to: [gentoo-user] crontab backup by Joseph
1 On Tue, 16 Sep 2014 19:30:36 -0600, Joseph wrote:
2
3 > I'm trying to backup crontab from various boxes to files, so I'm using
4 > (run once a month) 11 01 * * 5 crontab -l
5 > > /home/joseph/business/backup/crontabs/syscon7_joseph_crontab
6 >
7 > but I can from bash: cannot overwrite existing file
8
9 Do you have noclobber in your shell options? If so, replace > with >| to
10 overwrite files. Or use tee, which will happily overwrite files with no
11 consideration of their type, content or importance :(
12
13
14 --
15 Neil Bothwick
16
17 Growing old is mandatory; growing up is optional!!

Attachments

File name MIME type
signature.asc application/pgp-signature