bugGNU Wget - Bugs: bug #24806, Option to unlink before clobber...

 
 

bug #24806: Option to unlink before clobber (useful with -N)

Submitter:  Micah Cowan <micahcowan>
Submitted:  Mon 10 Nov 2008 10:37:27 PM UTC
   
 
Category:  Feature Request Severity:  2 - Minor
Priority:  2 Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  1.15 Regression:  None
Work Required:  0 - Hours Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 25 Jul 2010 06:28:37 PM UTC, comment #1: 

It is can be written like so

(file #21060)

Merinov Nikolay <m_kim>
Mon 10 Nov 2008 10:37:27 PM UTC, original submission:  

From the mailing list:


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/.


Micah Cowan <micahcowan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #21060:  wget-unlink.patch added by m_kim (5KiB - text/x-patch - patch for --unlink options)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by m_kim (Updated the item)
  • -email is unavailable- added by micahcowan (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-25 m_kim Attached File- Added wget-unlink.patch, #21060
    2008-11-10 micahcowan Priority5 - Normal 2

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code