From owner-freebsd-questions@freebsd.org Tue Sep 29 11:14:29 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 27DCE3FEB91 for ; Tue, 29 Sep 2020 11:14:29 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0xc42lLDz4dWd for ; Tue, 29 Sep 2020 11:14:28 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id 0BD2410196; Tue, 29 Sep 2020 12:14:26 +0100 (BST) Subject: Re: Preserving target file's creation date To: Thomas Mueller , freebsd-questions@freebsd.org References: <20200929064218.00002422@seibercom.net> From: Arthur Chance Message-ID: <83ca9840-a622-b069-5a3c-9bfabf2fb9a5@qeng-ho.org> Date: Tue, 29 Sep 2020 12:14:26 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200929064218.00002422@seibercom.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4C0xc42lLDz4dWd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-3.06 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.02)[-1.021]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[qeng-ho.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.75)[-0.747]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[twc.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2020 11:14:29 -0000 On 29/09/2020 12:11, Thomas Mueller wrote: >> I am trying to copy/move one file onto another. I need to preserve the >> creation date of the target file. I see options to preserve the >> creation date of the source file, but not the target file. Is it >> possible? > >> Thanks! > >> Jerry > > I have had to do that on various occasions: see man cp > > Use cp -p That copies the source file's modification and access times to the target file. Jerry wants to preserve the *target* file's *creation* time. -- The number of people predicting the demise of Moore's Law doubles every 18 months.