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

08/10/09

Permalink 07:34:34 am, Categories: General, 54 words   English (UK)

Playstation 3 and Linux

If you are lucky owner of PS3 system and got tired of game playing then you can try Linux using PS3 hardware. Yellow Dog Linux is specifically made for PS3 and is easy to install and use. Being Linux you can start to write and compile your own software that runs on PS3 console

09/04/08

Permalink 06:11:13 pm, Categories: News, 36 words   English (UK)

Interest in Linux is Down, Vista more popular

There is less interest in Linux now and trend is downwards. Some articles claimed that Vista is opportunity for desktop Linux. Hard data from Google trends shows that there is more interest in Vista than Linux !

08/11/07

Permalink 06:26:58 am, Categories: News, 28 words   English (UK)

Pretoria Linux RSS Feed

I have implemented RSS feed for our Linux shop service. Stay up to date with latest releases. No lost emails due to full account or spam filter. Enjoy !

09/06/07

Permalink 11:36:56 pm, Categories: News, 97 words   English (UK)

CentOS

I have migrated VPS hosting this blog from Fedora to CentOS

CentOS is build from Red Hat Enterprise Sources so it's almost identical

Difference is that you don't get support from Red Hat but community and Internet is the best support you can get and is driving force behind Linux

It comes with its own repositories that contain security and bug fix updates

Yum can be used to update your system automatically

Fedora is curring edge but CentOS is more stable and conservative

Where do you want to go today ?
You should try your own CentOS today !

:: Next Page >>

Africa's Linux Operating System

Forum for discussion of Linux

| Next >

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

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution