From owner-freebsd-stable@FreeBSD.ORG Tue Feb 28 08:38:21 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13A8E16A420 for ; Tue, 28 Feb 2006 08:38:21 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: from office.suresupport.com (office.suresupport.com [213.145.98.15]) by mx1.FreeBSD.org (Postfix) with SMTP id E58C743D69 for ; Tue, 28 Feb 2006 08:38:18 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 25700 invoked by uid 1026); 28 Feb 2006 08:41:46 -0000 Received: from 213.145.98.14 by office.suresupport.com (envelope-from , uid 1004) with qmail-scanner-1.23 (f-prot: 4.4.2/3.14.11. Clear:RC:1(213.145.98.14):. Processed in 0.247227 secs); 28 Feb 2006 08:41:46 -0000 Received: from unknown (HELO 14.98.145.213.in-addr.arpa) (213.145.98.14) by office.suresupport.com with SMTP; 28 Feb 2006 08:41:45 -0000 From: Niki Denev To: freebsd-stable@freebsd.org Date: Tue, 28 Feb 2006 10:40:36 +0200 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602281040.36507.nike_d@cytexbg.com> Subject: filesystem snapshot timestamp not correct? 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: Tue, 28 Feb 2006 08:38:21 -0000 Hello, I'm running a 6.1-PRE machine and have created the following scripts called from /etc/crontab : 0 0 * * * root /usr/local/sbin/make_snapshot.sh 15 0 * * * root /usr/local/sbin/purge_snapshot.sh make_snapshot.sh : #!/bin/sh date=`date +%d-%m-%y` /sbin/mksnap_ffs / /.snap/snapshot-$date purge_snapshot.sh: #!/bin/sh /usr/bin/find /.snap -name "snapshot-*" -type f -ctime +7d -exec /bin/rm '{}' \; so i will have snapshot created each day, and all snapshots older than 7 days will be deleted. but i have more than 7 files in /.snap : ls -la /.snap/ total 125460 drwxrwxr-x 2 root operator 512 Feb 28 00:00 . drwxr-xr-x 19 root wheel 512 Feb 27 13:08 .. -r--r----- 1 root operator 536870984 Feb 28 09:36 snapshot-20-02-06 -r--r----- 1 root operator 536870984 Feb 28 09:36 snapshot-21-02-06 -r--r----- 1 root operator 536870984 Feb 28 09:36 snapshot-22-02-06 -r--r----- 1 root operator 536870984 Feb 28 09:36 snapshot-23-02-06 -r--r----- 1 root operator 536870984 Feb 28 09:36 snapshot-24-02-06 -r--r----- 1 root operator 536870992 Feb 28 09:36 snapshot-25-02-06 -r--r----- 1 root operator 536870992 Feb 28 09:36 snapshot-26-02-06 -r--r----- 1 root operator 536870992 Feb 28 09:36 snapshot-27-02-06 -r--r----- 1 root operator 536870992 Feb 28 09:57 snapshot-28-02-06 and most of them are with the same timestamp? Any ideas? Probably i'm doing something wrong, but can't see it yet... Regards, Niki