Random Access Memories

June 15, 2011

The “Lasivian wants an automatic Opensim backup” project.

by @ 1:45 am. Filed under Personal, Secondlife, Server Admin, Technology

It’s sloppy, but most importantly it works, and it backs up EVERYTHING. Terrain maps, world map image, .oar, .xml, all three .ini files, mysql database, etc.

I based this off the backup script here:

  • http://opensimulator.org/wiki/Backing_Up_LINUX
  • I’m running Ubuntu 11.04 server, x64 btw and this all works.

    I store both scripts in /home/username/backupdir/scripts, the shell script gets run as a cron job.

    #!/bin/sh
    ;Not that it *really* matter that we tell people, but I think it's polite, heh.
    screen -S opensim -p 0 -X eval 'stuff "alert Beginning full simulator backup, things might be slow for a bit.^M"'
    ;Yes, I'm redundant, this is just in case I missed something
    cd /home/username/backupdir
    ;Copy the old backups to a holding directory, I clean them out by hand every so often. This could be an offsite location.
    mv /home/username/backupdir/*.* /home/username/backupdir/old
    ;This line runs the second command script inside the opensim process.
    screen -S opensim -p 0 -X eval 'stuff "command-script /home/username/backupdir/scripts/osbackup.txt^M"'
    ;Now dump the mysql data to zip and date it.
    mysqldump -ulogin -ppassword opensim | gzip > /home/username/backupdir/opensimbackup_`date +%Y%m%d_%H%M%S`.sql.gz
    ;Copy and date the 3 .ini files
    cp /home/username/opensim/bin/OpenSim.ini /home/username/backupdir/opensim_`date +%Y%m%d_%H%M%S`.ini
    cp /home/username/opensim/bin/Regions/Regions.ini /home/username/backupdir/regions_`date +%Y%m%d_%H%M%S`.ini
    cp /home/username/opensim/bin/config-include/StandaloneCommon.ini /home/username/backupdir/standalonecommon_`date +%Y%m%d_%H%M%S`.ini
    ;The next line is just a delay so the .oar output can finish, it might take your server much longer, change as needed.
    sleep 30
    ;There is likely a much more efficient way to do the following, but this was what I could figure out
    timestamp=$(date)
    ;these rename the opensim dumped files to add timestamps to the names. I think this makes them easier to manage later.
    for f in epsilon.*
    do mv "$f" "epsilon_$timestamp.${f#epsilon.}"
    done
    for f in techrealms.*
    do mv "$f" "techrealms_$timestamp.${f#techrealms.}"
    done
    for f in theta.*
    do mv "$f" "theta_$timestamp.${f#theta.}"
    done
    for f in delta.*
    do mv "$f" "delta_$timestamp.${f#delta.}"
    done
    for f in connections.*
    do mv "$f" "connections_$timestamp.${f#connections.}"
    done
    ; Guessing this could also probably inform something in-world that could record backups. I'm not sure how tho
    screen -S opensim -p 0 -X eval 'stuff "alert Backup complete, thank you.^M"'

    This second script is executed inside the screen that is running opensim.

    ;Script Name = osbackup.txt
    ;executed with "command-script /home/username/backupdir/scripts/osbackup.txt" inside opensim
    ;
    change region root
    ; Persist objects to the database now
    backup
    ;
    change region techrealms
    ; export world map image
    export-map /home/username/backupdir/techrealms.jpg
    ; save terrain
    terrain save /home/username/backupdir/techrealms.r32
    ; save prims to XML
    save xml2 /home/username/backupdir/techrealms.xml
    ; save the current region to an opensim archive
    save oar /home/username/backupdir/techrealms.oar
    ;
    ; repeat as needed
    ;
    change region delta
    export-map /home/username/backupdir/delta.jpg
    terrain save /home/username/backupdir/delta.r32
    save xml2 /home/username/backupdir/delta.xml
    save oar /home/username/backupdir/delta.oar
    ;
    change region theta
    export-map /home/username/backupdir/theta.jpg
    terrain save /home/username/backupdir/theta.r32
    save xml2 /home/username/backupdir/theta.xml
    save oar /home/username/backupdir/theta.oar
    ;
    change region epsilon
    export-map /home/username/backupdir/epsilon.jpg
    terrain save /home/username/backupdir/epsilon.r32
    save xml2 /home/username/backupdir/epsilon.xml
    save oar /home/username/backupdir/epsilon.oar
    ;
    change region connections
    export-map /home/username/backupdir/connections.jpg
    terrain save /home/username/backupdir/connections.r32
    save xml2 /home/username/backupdir/connections.xml
    save oar /home/username/backupdir/connections.oar

    Use them however you want. If someone wants to clean them up for me that would be appreciated.

    Thanks & good luck.

    March 24, 2009

    One of my favorite commercials

    by @ 5:17 pm. Filed under Business, Crime & Justice, Personal, Quotes, Secondlife, Technology

    This text will be replaced

    I just love the way they did this commercial. Took me forever to find a copy of it, it’s around 10 years old.

    (Direct Download link: Here)

    October 23, 2008

    “Yes your honor, I deleted him in cold blood”

    by @ 6:39 pm. Filed under Crime & Justice, Secondlife, Technology

    Online murder, well it was bound to happen sometime.

    Online divorcee jailed after killing virtual hubby

    By MARI YAMAGUCHI, Associated Press Writer Mari Yamaguchi, Associated Press Writer – Thu Oct 23, 3:48 pm ET

    TOKYO – A 43-year-old Japanese woman whose sudden divorce in a virtual game world made her so angry that she killed her online husband’s digital persona has been arrested on suspicion of hacking, police said Thursday.

    The woman, who is jailed on suspicion of illegally accessing a computer and manipulating electronic data, used his identification and password to log onto popular interactive game “Maple Story” to carry out the virtual murder in mid-May, a police official in northern Sapporo said on condition of anonymity, citing department policy.

    “I was suddenly divorced, without a word of warning. That made me so angry,” the official quoted her as telling investigators and admitting the allegations.

    The woman had not plotted any revenge in the real world, the official said.

    She has not yet been formally charged, but if convicted could face a prison term of up to five years or a fine up to $5,000.

    Players in “Maple Story” raise and manipulate digital images called “avatars” that represent themselves, while engaging in relationships, social activities and fighting against monsters and other obstacles.

    The woman used login information she got from the 33-year-old office worker when their characters were happily married, and killed the character. The man complained to police when he discovered that his beloved online avatar was dead.

    The woman was arrested Wednesday and was taken across the country, traveling 620 miles from her home in southern Miyazaki to be detained in Sappporo, where the man lives, the official said.

    The police official said he did not know if she was married in the real world.

    In recent years, virtual lives have had consequences in the real world. In August, a woman was charged in Delaware with plotting the real-life abduction of a boyfriend she met through “Second Life,” another virtual interactive world.

    In Tokyo, police arrested a 16-year-old boy on charges of swindling virtual currency worth $360,000 in an interactive role playing game by manipulating another player’s portfolio using a stolen ID and password.

    Virtual games are popular in Japan, and “Second Life” has drawn a fair number of Japanese participants. They rank third by nationality among users, after Americans and Brazilians.

    September 7, 2006

    Secondlife Income Distribution

    by @ 9:16 am. Filed under Personal, Secondlife

    I was curious the other day about how many people in Secondlife make a profit off their work in that virtual world.

    This is the best data I could come up with based on the # of Linden Dollars that LL says are left on the market after sinks, and a rough guess that 20,000 users actually interact with the economy.

    I also had no basis for distribution of wealth, so I used the list of transactions by value. (If anyone has any better data i’m listening)

    # of users - USD Yearly Net (After sinks)
    7509 - 296.68
    3495 - 637.20
    3314 - 672.43
    2460 - 905.61
    1647 - 1,351.40
    718 -- 3,095.93
    692 -- 3,214.08
    129 -- 17,160.62
    32 --- 68,979.92
    4 ---- 567,489.68
    1 ---- 1,564,767.87

    (No, that 1 making 1.5 mil is not Anshe, it’s just how the formula came out)

    March 27, 2006

    I’m sorry Prok.

    by @ 8:49 pm. Filed under Secondlife

    I chose to put my answer here for reasons that will become clean in a moment. (This is a response to the post found Here.)

    You see, I have to come clean, I used you Prok.

    I realized that I needed advertising, and I didn’t want to pay for it.

    So an idea came to mind, “Who can I get to put my name up in lights, for free?”.

    That’s where you came in, and using a little bird you’ll recognize called Flavius Flop I dropped a hint in your ear about a post on the forums.

    Which (true to form) you fell upon like a starving wolverine on a dead moose.

    The results? Visitors to my store have quadrupled tonight alone! Hence my response is here to drag more people from your site over to mine.

    Anyway thanks Prok, I knew you would come through for me! 🙂

    (BTW, for anyone that cares my store is Here)

    Lasivian's small corner of the web.
    (Please wipe your browser before entering so you don't track in mud)

    Internal Pages:

    Categories:


    Misc:

    Si hoc legere scis mimium eruditionis habes

    Does your brain hurt yet?

    retesostft vntphoim enuni toegtieittyft nece n tiog siheun sec eevd go doyvweelprnnstt ievtg h i tieosddfrntea ytiedtt uryrieyhmhsug rer hieoywle unie tnxeref nfls ettdsiedte fnsiei fdhfZ

    (I can't remember how I encrypted this cipher , the first person to crack it gets 10$ via Paypal.)

    My Email:

    01001010011101010111001101110 10000100000011010000110100101 10010001101001011011100110011 10010000001101101011110010010 00000110010101101101011000010 11010010110110000100000011010 01011011100010000001110000011 01100011000010110100101101110 00100000011100110110100101100 11101101000011101000000110100 00101000001101000010100100110 00110000101110011011010010111 01100110100101100001011011100 10000000110011101101101011000 01011010010110110000101110011 000110110111101101101
    WTF?

    How long the USA has been under corporate rule:

    Search Posts:

    Archives:

    May 2024
    S M T W T F S
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  

    External Links:

    Things i've read lately:

    QR Codes

    (Scan these on your cellphone)

    My website URL

    My E-mail

    other:

    41 queries. 0.493 seconds