From owner-freebsd-stable@FreeBSD.ORG Wed Jun 20 16:19:03 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA6EB16A421 for ; Wed, 20 Jun 2007 16:19:03 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: from corpmail.itlegion.ru (corpmail.itlegion.ru [84.21.226.211]) by mx1.freebsd.org (Postfix) with SMTP id 269BF13C4C7 for ; Wed, 20 Jun 2007 16:19:02 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: (qmail 10328 invoked from network); 20 Jun 2007 20:18:58 +0400 Received: from unknown (HELO Artem) (192.168.0.12) by 84.21.226.211 with SMTP; 20 Jun 2007 20:18:58 +0400 X-AntiVirus: Checked by Dr.Web [version: 4.33, engine: 4.33.5.10110, virus records: 213321, updated: 20.06.2007] Message-ID: <04e601c7b356$b47cddf0$0c00a8c0@Artem> From: "Artem Kuchin" To: References: <200706201354.l5KDsPtl022664@lurza.secnetix.de> Date: Wed, 20 Jun 2007 20:18:55 +0400 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Cc: Subject: Re: When inode change time changes? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 16:19:03 -0000 Oliver Fromme wrote: > Artem Kuchin wrote: >> I use gtar (gtar because it has incremental >> backups, and tar does not) > > You _can_ use BSD tar for incremental backups. I do that > every day. Yes, but that's not real incremental backup because if you restore data you'll get a bunch of files that were deleted along the way. gtar stores full file list and actually deleted the deleted files when restoring. And i have excessively many of such created and deleted files and i need only current ones. So tar is of no use for me. Also, i use inode time because i only need files which really have been changed. For example, i you restore a file from a month ago it will have a date which is a month ago. Then that backup is destroyed but this file would not be backed up because the date is too much in the past. So, we loose the file. If i used inode change time the file will be backup in any case. However, some "stupid" programs like mysql or qmail seem to touch files so, for example, all mail message and databases are backed up every time. And this sucks. So, when backing up these files i need to use file modification time and it is suitable here, since these file are never managed by human, only by daemon and old file eather go away (like in email) or change its mod time (like in mysql). What is still do not understand is what time gtar uses for --newer option. Man page says: --newer date Only store files with creation time newer than date. This is simply not true. NOT creation time defenetly. It is either modification time or inode change time. Which one? -- Regards, Artem