Author Archive

A linux incremental backup system using DAR

This is a pair of scripts i designed in order to create and restore easily incremental backups of a game server, they allow you to backup automatically a specific folder every 30 minutes every backup is labeled with date hour/minutes/seconds and the script flush every backups that are older than seven days (you can change that obviously)

The system uses incremental updates through the “dar” program, it creates a master backup file every mornings at 0:00 and creates incremental backups every 30 minutes. This means only what changed through the day is saved instead of having one full backup 48 times a day.

this script you should execute through a cron job:

#/bin/sh
#script: backup_incremental.sh
#the folder we want to backup is /home/username/folder_to_backup

WORKING_DIR=/home/username
FOLDER=folder_to_backup
BACKUP_FOLDER=/my/BACKUP

DAY=`date -I`
HOUR=`date +%H%M%S`

#this define the day date of the backups we want to delete
OLD=`date -I -d "-1weeks"`

cd $WORKING_DIR

if [ -f ${BACKUP_FOLDER}/${DAY}.1.dar ]
then
	echo "master backup exist, making incremental update."
	LASTSLICE=`ls -1cr ${BACKUP_FOLDER}/${DAY}*.dar |tail -1`
	echo "last slice is: ${LASTSLICE}"
	dar -c ${BACKUP_FOLDER}/${DAY}-${HOUR} -R ${WORKING_DIR}/${FOLDER} -P . -A ${LASTSLICE%%.*}
else
	echo "creating daily master backup"
	dar -c ${BACKUP_FOLDER}/${DAY} -R ${WORKING_DIR}/${FOLDER} -P .
	echo "deleting 7 days old backup (${OLD})"

	#we remove the older backups, if we can
	rm ${BACKUP_FOLDER}/${OLD}*
fi

Example cron job to execute this script (dev/null is required because dar tend to be quite chatty):

*/30 * * * * /home/user/scripts/backup_incremental.sh >> /dev/null 2>&1

Restoring backups with dar is a little tedious because you have to restore every incremental backups one by one. This script will restore the master backup and every incremental backups up to the one you defined in the folder of your choice.

#/bin/sh
#script: restore_incremental.sh

if [ -n "$3" ]; then
        if [ -f "$1" ]; then
                if [ -f "$2" ]; then

                        FS_ROOT="$3"
                        MASTER_DAR="${1%%.*}"
                        LAST_BACKUP="${2%%.*}"
                        FILES=`ls -m1cr ${MASTER_DAR}*.dar`

                        echo "MASTER DAR FILE is: ${MASTER_DAR}"
                        echo "LAST BACKUP is: ${LAST_BACKUP}"
                        echo "File list: ${FILES}"

                        for file in ${FILES}; do
                                echo "Processing... ${file}"
                                dar -Ox ${file%%.*} -w -R "$FS_ROOT"
                                if [ "${file%%.*}" == "${LAST_BACKUP}" ]; then
                                        echo "This was our last file."
                                        break
                                fi
                        done
                        echo "All done."
                else
                        echo "ERROR: this increment doesn't exist."
                fi
        else
                echo "ERROR: this base dar doesn't exist."
        fi
else
   echo "Not enough parameters.

Usage:
restore_incremental.sh master_backup.1.dar last_incremental_backup.1.dar /my/destination/folder/"
fi

My first pong game

I never got around training myself on making a simple game from start to finish, so here is my first one, obviously it’s not going to provide you hours upon hours of entertainment, nor is it the most sleek and polished game ever made, but hey i tend to never finish projects, this one is!

…it has shadows and cellshading!

Basic latex hood, tatoo update

And again, i added tatoo layer to my basic latex hoods, and did a new product pic.

As usual if you already got a hood from me, just ask me for the extra layer, it’s free.

It’s also available on XStreet

Now proper tatoo versions of the Vixen hood

Inworld and on Xstreet, Enjoy 🙂

Theremin

I just built this little theremin, it could be fun to script but i’ve no idea how…

Secondlife hair creators invent virtual hair lice?

Here is a little story about my experience with buying a “Maitreya Nimue” ( Created by Onyx LeShelle ) hair pack in SecondLife, which is one of the few specialized products that I believe i’m better off buying than attempting to build myself.

I made this cute little script a few weeks ago that show an animated hover text over your head when you are typing, so that, would you chose to disable the sound and typing animation, peoples can still know that you are typing something. Simple enough right?

Now when I buy hairs I like to get them MOD COPY, and I never buy nomod hairs, being a builder, I always end up tweaking this and that, add or remove parts of it.

Now to add a script to an attachment you have to rez it on your land and drop the script inside, which I tried to do. To my surprise, every time I tried the hairs would disappear. It didn’t take me very long to figure out it wasn’t the sim having a glitch but YET ANOTHER ONE OF THOSE PESKY “PROTECTION” SCRIPTS.

Turned out after editing the hairs on a noscript land (yeah , that’s all it takes to fool this “bullet proof” copy protection. That there was no script in the root prim, nor aparently in none of the hair prims. Yeah it was much more vicious, there was tiny little prims scattered here and there (3 to 5) inside the hair prims, and these where holding the pesky protection script.

Hello hair creators? I buy MOD creations from you that means I expect MODIFY RIGHTS, I had to spend 10 minutes on each color of the hair pack to basically DELOUSE each haircut!

Yes, delouse because what else can it be? it’s tiny, near invisible, and annoying as hell!

Now for the fun here is a little review of the thing:

Personal rating: 0/10 , Your stuff can look amazing and professional, as long as you try to pull bullshit like this, I won’t shop at your place anymore, there are plenty of honest hair designers to satisfy me, it doesn’t protect you, it doesn’t work, it only piss your legitimate customers.

Some more “all layer” updates

I’ve been spacing out the news cause I thought there was no point in filling this blog with “a new update” every day on what is essentially sorts of “reeditions”.

So here is some more: The lycra catsuits and the kriss kross catsuit, including new gorgeous pictures 🙂

kdc.ethernia.net now support SSL

Because i truly believe that what we are doing on the Internet is no one’s business, whether we have something to hide or not, i support the use of SSL on as many websites as possible, so it’s only logical that i try to have a working ssl version of my blog.

So what is this SSL thing about?

For the non geeks amongst us, when you or i browse websites, every information i send and receive from said website travel in “plain text” format, which means that anyone that is relaying this piece of information from me to it’s destination, and vice verse can very easily see what websites i am looking at or what keywords i entered on google.

When you use an SSL website (if the URL starts with “https://” instead of “http://” the information are encrypted both ways between you and the website you are visiting.

That means that, yes your ISP may know that you are connecting to this, or that computer, they know you are probably visiting a website, but they cannot see what you are doing.

This is used by many online shops and online banking systems, usually everything involving sums of money is secured through SSL.

Why does it matter?

Because it shouldn’t be limited to this! Many governments are starting to complain about the rise in encrypted communications.

Saudi Arabia was about to ban Blackberry cellphones because they couldn’t easily access the encrypted information between Blackberry cellphones and RIM’s servers.

Google started a new beta service where you can connect to them and perform searches in https (  ), it doesn’t offer yet all the the common functions like image search but it’s already a nice step forward.

https://encrypted.google.com

The bottom line is that as surveillance systems become faster and more efficient, it is vital in order to keep our freedom that we use the tools that are available today to protect ourselves. If SSL browsing (and encrypted communications in general) becomes more widespread it will make general surveillance nearly impossible.

Buckled latex corset update

Again, same as the two previous news, you can get all layers on the buckled latex corset.

Enjoy while i keep working 🙂

Another small update

Updated pictures and availability on all layers for the Delilah Corset, also now listed properly on XstreetSL, as for the base catsuit, the update is free and you jsut have to ask for it.

Kyrah Abattoir
Creator of BDSM and fetish content in Second Life since 2004.

Seasoned 3D artist and programmer, aspiring video game creator.

January 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
Archives
Categories