From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F0EDE13838B for ; Wed, 17 Sep 2014 02:57:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BED36E09E3; Wed, 17 Sep 2014 02:57:47 +0000 (UTC) Received: from mail145c7.megamailservers.com (mail130c7-2520.megamailservers.com [69.49.98.25]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A6163E09B8 for ; Wed, 17 Sep 2014 02:57:46 +0000 (UTC) X-POP-User: admin@sys-concept.com X-VIP: 69.49.109.100 Received: from syscon7.localdomain (S01060050da7ae68c.ed.shawcable.net [68.149.90.13]) by mail145c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id s8H2viP3012407 for ; Tue, 16 Sep 2014 22:57:45 -0400 Received: by syscon7.localdomain (Postfix, from userid 1000) id 2D9F420027C; Tue, 16 Sep 2014 20:57:48 -0600 (MDT) Date: Tue, 16 Sep 2014 20:57:48 -0600 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: crontab backup Message-ID: <20140917025748.GA21100@syscon7> References: <20140917013036.GC7543@syscon7> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-CTCH-RefID: str=0001.0A020203.5418F8AA.0002,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.1 cv=LtirlBtc c=1 sm=1 tr=0 a=C3ZDv51cNVt4vJz/79I2xQ==:117 a=C3ZDv51cNVt4vJz/79I2xQ==:17 a=SDcUNfBxAAAA:8 a=BDKbP5mgAAAA:8 a=Unq3plm5DvEA:10 a=M1kyBYkWWGkA:10 a=f5acv3Q83HMA:10 a=36JGMPQ4nFEA:10 a=nDghuxUhq_wA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=lCQ-n8d2blmMuiAGyMsA:9 a=QEXdDO2ut3YA:10 X-Origin-Country: CA X-Archives-Salt: f19e9cf3-9fba-43e2-9bc7-14cd66d4cf3e X-Archives-Hash: db97528375b6c914958cf5e114058198 On 09/17/14 05:22, Jouni Kosonen wrote: >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 >> > >>From "man bash": > > Redirecting Output >... > If the redirection operator is >, and the noclobber option to the > set builtin has been enabled, the redirection will fail if the file > whose name results from the expansion of word exists and is a regu‐ > lar file. If the redirection operator is >|, or the redirection > operator is > and the noclobber option to the set builtin command > is not enabled, the redirection is attempted even if the file named > by word exists. Yes, that worked. Thanks -- Joseph