From owner-freebsd-questions Fri Jan 12 08:01:35 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA18047 for questions-outgoing; Fri, 12 Jan 1996 08:01:35 -0800 (PST) Received: from iworks.InterWorks.org (iworks.interworks.org [128.255.18.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA18040 for ; Fri, 12 Jan 1996 08:01:30 -0800 (PST) Received: by iworks.InterWorks.org (1.37.109.8/16.2) id AA01054; Fri, 12 Jan 1996 09:58:34 -0600 Message-Id: <9601121558.AA01054@iworks.InterWorks.org> Date: Fri, 12 Jan 1996 09:58:34 -0600 From: "Daniel M. Eischen" To: questions@freebsd.org Subject: Re: backing up files newer than DATE with tar Sender: owner-questions@freebsd.org Precedence: bulk I wrote: > I've been trying to back up files newer than a certain date with the > tar -N (--after, --newer) option. I am running 2.1 and have read > the manpages and --help options, but can't find what I'm doing > wrong. > > bash$ ls -l > total 10 > drwxr-xr-x 2 eghk other 512 Jan 12 10:45 . > drwxr-xr-x 31 eghk other 1024 Jan 12 10:45 .. > -rw-r--r-- 1 eghk other 6 Jan 12 10:45 junk1 > -rw-r--r-- 1 eghk other 6 Jan 12 10:45 junk2 > -rw-r--r-- 1 eghk other 6 Jan 12 10:45 junk3 > bash$ date > Fri Jan 12 10:46:15 EST 1996 > bash$ tar -cvf /dev/null --newer "Jan 12 10:46:15" * > junk1 > junk2 > junk3 > bash$ tar -cvf ../junk.tar --newer "Jan 12 10:46:15" * > junk1 > junk2 > junk3 > bash$ tar -tvf ../junk.tar > -rw-r--r-- eghk/other 6 Jan 12 10:45 1996 junk1 > -rw-r--r-- eghk/other 6 Jan 12 10:45 1996 junk2 > -rw-r--r-- eghk/other 6 Jan 12 10:45 1996 junk3 > bash$ > > In a similar fashion, I can't get the --listed-incremental option to > work either. > > I know I could use find to generate the list of files, but I'd rather > figure out why tar doesn't work for me. > > Anyone want to tell me what I've done wrong (incorrectly)? I found that using "Jan 13 xx:xx" as the date worked as documented. I take it this only works for days, not hours? Dan Eischen deischen@iworks.InterWorks.org