[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] wget no-clobber operation
From: |
Micah Cowan |
Subject: |
Re: [Bug-wget] wget no-clobber operation |
Date: |
Mon, 30 Nov 2009 21:14:02 -0800 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Flees, Erik wrote:
> I am trying to mirror a web site and would like to keep backup copies of the
> files that get changed.
> Like the no-clobber process file.txt will become file.1 then file.2 and so on
> as new versions of the file get mirrored from the web site.
> Using -N -r or even -m all cause problems because they do not preserve the
> original file. If I use any of these options the newer remote file overwrites
> the older local file.
> I want to keep the older local file and the newer remote file.
> Is there any way to do this?
You could provide the -nd option (which disables the hierarchy of
directories, and may have other undesirable side effects). There's
currently no other way to combine -r/-m with what you intend by -nc.
- -N is designed to be mutually exclusive with -nc.
- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAksUphoACgkQ7M8hyUobTrHfVgCeIpgWs3AO2xc9xdh3sYESs7J6
xlwAn29pVhJs83+lXqD7njg2J/nGnn5g
=sw6S
-----END PGP SIGNATURE-----