Archives for: January 2010

20/01/10

Permalink 06:57:43 am, Categories: General, 165 words   English (UK)

Automated backup using ssh and encryption to safeguard data

Linux server is better than Swiss army knife. Using pipes you can join commands together to process and transform data.

Task:

Automatically backup entire folder to encrypted file and upload in secure manner to backup server using minimum of disk space.

Code:

#
# install as cronjob, must escape any % as \% otherwise it becomes newline
#
tar cvf - /home/tom | gpg --no-tty --passphrase-file pass.txt -c - | ssh user@backup.com "cat > tom.tar.gpg"

Explanation:
--no-tty is required for cronjob as there is no tty attached during execution
pass.txt will contain your symmetrical password

#
# create tarball containing entire folder and send output to stdout
#
tar cvf - /home/tom

#
# read from stdin and encrypt data stream using pass phrase in file pass.txt
#
| gpg --no-tty --passphrase-file pass.txt -c -

#
# read from stdin data stream and send via secure shell to backup server as tom.tar.gpg
#
| ssh user@backup.com "cat > tom.tar.gpg"

for more info try

man tar
man gpg
man ssh

19/01/10

Permalink 01:43:14 am, Categories: General, 114 words   English (UK)

Decline of Google search and rise of Bing

I was nicely surprised to see increase in traffic this year to my online portfolio. After examining web stats the top search engine was Bing and not Google. I have been fan of Google for a long time but their search engine is far from perfect. Listing of pages is chaotic and does not seems to follow logical rules. The rise in traffic from Bing means users are defecting Google search. Playing field is slowly becoming even. One dominant search engine creates online monopoly and kills business opportunities. "Evil Empire" started to having positive influence on Internet search. The ideal situation would be to have mainstream search engines equal market share. Exiting times ahead !

Africa's OSS/Linux All Blogs


This blog is actually a very special blog! It automatically aggregates all posts from all other blogs. This allows you to easily track everything that is posted on this system.

January 2010
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Get Linux in South Africa Pretoria on DVD or CD, SUSE, OpenSuse, Fedora, Mandriva, Knoppix, Mandrake, Debian, DamnSmall, DSL, Gentoo, Slackware, SimplyMepis, Monoppix, FreeBSD, Trustix, Comodo, Smoothwall, Gibraltar, IPCop, OpenCD, Ubuntu, Kubuntu, Redhat, CentOS, Whitebox, PCLinuxOS, Xandros, Vector, Scientific, OpenOffice, Vector, Foresight, Asterisk

Search

Linkblog

Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution