Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-22-2010, 07:22 AM   #1
LQ Newbie
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Question wget mystery: timestamps are off by a day...

Hi all,

Quick intro: I have 2 Linux based NASses: a Thecus N5200 Pro (the old one) and a QNAP TS-859 PRO (the new one). The QNAP is the main NAS and I decided to reformat the Thecus and use it as a backup means for the QNAP.

I use this script to backup between the 2 systems:

DATE=`date +%Y%0m%0d%0k%0M%0S`

cd /raid0/data/Data/
wget -r -N -l inf -nv --output-file=mirror_$DATE.log -nH --cut-dirs=1 --ftp-user=<myuser> --ftp-password=<mypassword>

chown -R nobody:smbusers *
chmod -R 664 *
chmod -R a+X *
This script is run on the Thecus and it fetches changed content from the QNAP (

Now here's the mystery: files downloaded to the Thecus get a timestamp that is 1 day earlier than the one on the QNAP... I thought I was seeing things so I check again and indeed, if the date of a file on the QNAP is 22/07/2010, the Thecus downloads it and timestamps it 21/07/2010. Yep, one day is gone. It consistently does this for all the files it downloads from the QNAP.

Result: every time I rerun my mirror script the entire array gets downloaded again and again and again (I have 7 TB of data I need to backup).

How can this be? Both systems have the correct time settings, they both use NTP and the timezones are correct...

I'm baffled quite frankly. Anyone has an idea to solve this (please don't say rsync or other methods, I want to first get this wget issue solved)?
Old 07-22-2010, 07:52 AM   #2
LQ Newbie
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Update: it seems it's a bug of old wget versions that miscalculates the size of large files. Now I just have to find a new binary of wget since the Thecus is still on an old busybox.


timestamp, wget

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu 10.04 - one day before (and now one day after) Lucid release, things are LXer Syndicated Linux News 0 05-01-2010 01:02 AM
cron job: day of month / day of week conflict? geekpie Linux - General 2 10-21-2009 03:56 AM
bash: time difference and calculate the mid day of the day? frenchn00b Programming 3 05-03-2009 02:03 PM Calc formula to check if day is last day of the month win32sux Linux - Software 1 01-19-2009 12:38 PM
Hi! Using rock solid Debian Etch, day to day, I'm investigating Lenny using another BillAp Linux - Newbie 2 11-26-2008 09:51 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration