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 6AC1313838B for ; Wed, 17 Sep 2014 02:23:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09A0DE094E; Wed, 17 Sep 2014 02:22:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EFE36E08D3 for ; Wed, 17 Sep 2014 02:22:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id EDDA534022C for ; Wed, 17 Sep 2014 02:22:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.13 X-Spam-Level: X-Spam-Status: No, score=-1.13 tagged_above=-999 required=5.5 tests=[AWL=0.224, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.652, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gNpXvtV_ix0b for ; Wed, 17 Sep 2014 02:22:44 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B37FA340224 for ; Wed, 17 Sep 2014 02:22:44 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XU4tF-0006h8-P7 for gentoo-user@gentoo.org; Wed, 17 Sep 2014 04:22:41 +0200 Received: from a88-112-8-51.elisa-laajakaista.fi ([88.112.8.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Sep 2014 04:22:41 +0200 Received: from jouni.kosonen by a88-112-8-51.elisa-laajakaista.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Sep 2014 04:22:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Jouni Kosonen Subject: [gentoo-user] Re: crontab backup Date: Wed, 17 Sep 2014 05:22:27 +0300 Message-ID: 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" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: a88-112-8-51.elisa-laajakaista.fi User-Agent: KNode/4.13.3 X-Archives-Salt: 2b0ee866-b09a-4351-98b1-39561f92ea29 X-Archives-Hash: 69607d0cc5eac729cd3d218ec1d3f00c 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. --- Jouni