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
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 !
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.
| 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 |