[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] unlink() before open()
From: |
Andre Majorel |
Subject: |
[Bug-wget] unlink() before open() |
Date: |
Mon, 10 Nov 2008 21:08:49 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Hi Micah and folks. Thanks for taking over Wget.
Is there a way to make Wget delete a file before it clobbers it ?
That would be useful to make archived mirrors of a web site :
mkdir 2009-01-01
wget -P 2009-01-01 -m http://fubar.com/
The next day :
mkdir 2009-01-02
find 2009-01-01 | cpio -pdl 2009-01-02
wget -P 2009-01-02 -m --unlink http://fubar.com/
At that point, 2009-01-01/ and 2009-01-02/ are mirrors of what the
site looked like on the same day. All files under 2009-01-02/ that
haven't changed since the previous day are hard links to their
counterpart under 2009-01-01/.
--
André Majorel <URL:http://www.teaser.fr/~amajorel/>
- [Bug-wget] unlink() before open(),
Andre Majorel <=