[ut2004] Backups? - Note to the wise - ... patches ...

Joel Wiramu Pauling aenertia at aenertia.net
Mon Jul 5 15:09:36 EDT 2004


Yeah but being a fresh install I didn't bother with backups ;-)
On Mon, 2004-07-05 at 14:48, Thomas Otto wrote:

> Note to the wiser - ALWAYS have backups :)
> 
> > Back to reinstall AGAIN...
> 
> Here is how I backup the u2k4 files which would be changed *before* 
> patching:
> 
> Assuming you installed your ut2k4 to /usr/local/games/ and also safed 
> and untared your patch to this location (dir permissions are
> drwxrwsr-x root:games here with me being in the games group so I dont 
> need to be root all the time).
> 
> generate a list of files that would be patched:
> $ cd /usr/local/games/UT2004-Patch
> $ find . -type f > ../ut2k4.patch.3236-1.file.list
> 
> then maybe become root and backup the files before applying the patch
> 
> $ cd /usr/local/games/
> $ while read i
> do
> [ -f "ut2004/$i" ] && cp -v "ut2004/$i" "ut2004/$i.3236-1.bak"
> done < ut2k4.patch.3236-1.file.list
> 
> This is spaces-safe ftr :)
> 
> Apply the patch:
> 
> $ cp -r UT2004-Patch/* ut2004/
> 
> and if anything goes wrong undo it (from the /usr/local/games/ dir):
> 
> $ while read i
> do
> [ -f "ut2004/$i.3236-1.bak" ] && cp -v "ut2004/$i.3236-1.bak" 
> "ut2004/$i" || rm -v "ut2004/$i"  ## <- one line from '[ -f ..' on
> done < ut2k4.patch.3236-1.file.list
> 
> Yeh, linux was never more ready for the desktop, right? ;)
> 
> 
>         -Thomas
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/ut2004/attachments/20040705/b5fd6a13/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://icculus.org/pipermail/ut2004/attachments/20040705/b5fd6a13/attachment.pgp>


More information about the ut2004 mailing list