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
  • 5
    Fix your system clock and timezone. Try NTP. – Juliano Jun 7 '11 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 '14 at 18:49

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
    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 '14 at 10:26

You can suppress the warnings while preserving the timestamps:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.