Introducing dcw: a Poor Man PaaS tool

Posted on Tue 28 March 2017 in Systems • Tagged with Docker, Bash, SSHLeave a comment

Dcw (Docker Compose Wrapper) is very small and dirty Bash script wrapping the docker-compose command. The meaning of such wrapper is to expose some docker-compose operations and a set of well defined commands on the host machine.

The typical use-case is an SSH command executed via the ~/.ssh/authorized_keys file ...

Continue reading

Backup your Dropbox share with bacula

Posted on Fri 27 July 2012 in Systems • Tagged with backup, bacula, bash, dropboxLeave a comment

I don't like cloud storage, especially I don't like Dropbox security history.
Anyway Dropbox and others cloud storage are damn cheap and easy to use, I use it for sharing non-important documents.

This little howto explain how you can backup your Dropbox share with Bacula.

First you must ...

Continue reading

Poor man virtual consolidated backup update

Posted on Sun 01 April 2012 in Systems • Tagged with backup, bacula, bash, scriptLeave a comment

I just received a little patch to my pmvcb from Tilman Schmidt.
This patch add the support for the new ESXi syntax of snapshot.remove.

You can download the last pmvcb from my Github page

Thanks Tilman.

Continue reading

bash snippet: dumping function call trace

Posted on Mon 18 July 2011 in Hacks • Tagged with bash, debugging, scriptLeave a comment

Uno snippet di codice bash utile nel debugging di script.

#@.. function:: __cm_exit_error([text],[...])
#@
#@   Stampa la stringa passata in stderr ed esce
#@   Se è impostata la variabile __cm_debug stampa lo stack di chiamata delle funzioni
#@
#@   :param text: la stringa da stampare
#@   :type text: String
#@
__cm_exit_error()

{
        echo "Error in ${FUNCNAME[1]}:${BASH_LINENO ...
Continue reading

VPN layer 3 con OpenSSH

Posted on Mon 22 December 2008 in Systems • Tagged with bash, ssh, vpnLeave a comment

Dalla versione 4.3 di OpenSSH è stato introdotto il supporto per TUN/TAP. Questo sigifica che è possibile stabilire un tunnel cifrato tra due peer o due (o piu) reti.
Questo script si occupa di fare il discover dei device tun da utilizzare, assegnare gli indirizzi e le rotte ...

Continue reading