36

When running tar xzf, how to prevent this message (Prevent showing time stamp message):

tar: node: time stamp 2011-06-07 02:02:30 is 8309 s in the future
tar: user/Node: time stamp 2011-06-07 01:56:05 is 7924 s in the future
2
  • 5
    Fix your system clock and timezone. Try NTP.
    – Juliano
    Jun 7, 2011 at 1:55
  • 5
    The system clock and timezone on our destination server is correct. The source files we received were from someone in a much earlier timezone - and additionally some of the files had a timestamp 200 years in the future.
    – user12345
    Jun 27, 2014 at 18:49

2 Answers 2

40

tar has an option to suppress this message [1]:

-m, --touch
don't extract file modified time

However, you should probably also check that you don't have an issue with your system clock.

[1] http://unixhelp.ed.ac.uk/CGI/man-cgi?tar

1
  • 3
    This supresses extraction of the file modified time, not just the message. There are situation when this message is expected (no RTC time yet), but the time stamps shall be restored.
    – Zrin
    Nov 17, 2014 at 10:26
35

You can suppress the warnings while preserving the timestamps:

tar xzf myarchive.tar --warning=no-timestamp
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .