[Server-devel] Does XSCE need a new Home?

James Cameron quozl at laptop.org
Sun Dec 1 17:41:37 EST 2013


On Sat, Nov 30, 2013 at 12:44:46PM -0500, Tim Moody wrote:
> I'm in favor of staying where we are.  To me the biggest risk is
> that the site one day just disappears.  We should have a backup of
> the content and deal with it if and when it happens.  I'm not sure
> what the easiest way to do a backup is.

Attached is a script that I use to update a local git repository with
the wiki syntax form of the Forth related Wiki pages.  It might be
extended to other pages.  Note the strange handling for multiple
levels.  It might only handle one level, and might need further coding
to fit your use case.

-- 
James Cameron
http://quozl.linux.org.au/
-------------- next part --------------
#!/bin/bash
for x in $(seq 23); do
   echo $x
   wget -q -O $x "http://wiki.laptop.org/index.php?title=Forth_Lesson_$x&action=raw"
done

echo 24
wget -q -O 24 "http://wiki.laptop.org/index.php?title=Device_Tree_Hacking&action=raw"

for x in \
    FORTH \
    Forth_stack_operators \
    Upgrading_firmware \
    Open_Firmware \
    Object-Oriented_Forth \
    Ok \
    Firmware \
    OFW_FAQ \
    Cross_Compiling_Open_Firmware \
    Firmware_zip_file_handling \
    Firmware_security \
    Manufacturing_data \
    Manufacturing_Data_Specification \
    Theft_deterrence_protocol \
    Boot_process \
    Firmware_Key_and_Signature_Formats \
    Activation_and_developer_keys \
    Collection_stick \
    Collection_stick/0 \
    Collection_stick/1 \
    Collection_stick/2 \
    Custom_bootloader \
    Cheat_codes \
    Serial_adapters \
    Firmware/Serial_Terminal \
    Firmware/Install \
    Firmware/Remote \
    Firmware/Building \
    Firmware/Storage \
    Startup_diagnosis \
    Scan_NAND \
    Startup_sound \
    Fix_Clock \
    USB_ethernet_adaptors; do
        echo $x
        DN=$(dirname $x)
        BN=$(basename $x)
        if [[ $DN != '.' ]]; then
            mkdir -p $DN.d
            wget -q -O $DN.d/$BN "http://wiki.laptop.org/index.php?title=$x&action=raw"
        else
            wget -q -O $BN "http://wiki.laptop.org/index.php?title=$x&action=raw"
        fi
done


More information about the Server-devel mailing list