tar -N (newer that Date) problem
Hi there
Im having a problem using the tar -N switch (newer that DATE)
I want to only add files that were created after a certain to the tar file
This is the listing of the directory i want to back up
drwxr-xr-x 2 root root 4096 Jan 11 12:55 .
drwxr-xr-x 4 cormac.cassidy cormac.cassidy 4096 Jan 11 12:54 ..
-rw-r--r-- 1 root root 0 Jan 9 10:43 four
-rw-r--r-- 1 root root 0 Jan 8 00:00 one
-rw-r--r-- 1 root root 41 Jan 9 15:19 putontape
-rw-r--r-- 1 root root 0 Jan 9 10:43 three
-rw-r--r-- 1 root root 0 Jan 8 00:00 two
Now this is the command i run and the output
blah# tar Ncvf 2006-01-09 test.tar back/
tar: Treating date `2006-01-09' as 2006-01-09 00:00:00 + 0 nanoseconds
back/
back/four
back/one
back/three
back/two
back/putontape
Instead of just adding the files - four, putontape and three it adds all of the files in the directory
Any suggestions
Im running Debian by the way
|