Archive

Posts Tagged ‘bash’

Inline colored information text in bash

June 15, 2011 Leave a comment

#!/bin/bash

clnone="\033[0m"
clred="\033[31m"
clgreen="\033[32m"

echo -en "\r:: ${clred}Starting server     ${clnone}"
sleep 1
echo -en "\r:: ${clred}Loading resources   ${clnone}"
sleep 1
echo -en "\r:: ${clred}Loading commands    ${clnone}"
sleep 1
echo -en "\r:: ${clred}Loading callbacks   ${clnone}"
sleep 1
echo -e  "\r:: ${clgreen}Server Started    ${clnone}"
Categories: Uncategorized Tags: , ,

My backup script for linux.

May 11, 2011 Leave a comment

I wrote script for full system backup using TAR.

[Source]

Create an empty file named backup-restore.sh and paste there a source code.

Save it. Give execution permission for that file (chmod +x backup-restore.sh ).

Open application using ./backup-restore.sh

Backups tars will be saved in current directory.

Screenshots

Categories: Uncategorized Tags: , ,