Workaround für netzpolitik.org – Feed unter Tiny Tiny RSS

Seit kurzer Zeit wird in der ttrss-Installation auf einem debian 6 (Squeeze) – System der Feed von netzpolitik.org nicht mehr aktualisiert. Stattdessen erscheint folgender Fehler:

Couldn’t download the specified URL: 35 error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

Continue reading “Workaround für netzpolitik.org – Feed unter Tiny Tiny RSS”

Script to duplicate most recent duplicity backups

Just added a script to github which takes care of duplicating the most recent duplicity backup files.

You can specify the amount of past backups runs. By default the last two full backups and their incrementals are copied, older files are automatically deleted (sliding window of most recent backups).

Use this script to add another level of redunancy in case that the main backup location fails.

The software, i.e. file naming conventions has been tested with duplicity version 0.6.13 (yes I know, quite old).

Continue reading “Script to duplicate most recent duplicity backups”

dash vs. bash : bei “export” besser immer quoten

Mit der Dash kann man Überraschungen erleben, wenn man bei Verwendung von export bei der Zuweisung keine Quotes benutzt und dummerweise Leerzeichen im Spiel sind.

Gegeben sei folgendes Shell-Script:

$ cat test.sh
a="eins zwei"
b=$a
export c="eins zwei"
export d=$c

echo a: $a
echo b: $b
echo c: $c
echo d: $d

Die Bash verhält sich, wie man es erwarten würde:

$ bash ./test.sh 
a: eins zwei
b: eins zwei
c: eins zwei
d: eins zwei

Die Dash dagegen:

glutz@glutz-VirtualBox:~$ dash ./test.sh 
a: eins zwei
b: eins zwei
c: eins zwei
d: eins

Continue reading “dash vs. bash : bei “export” besser immer quoten”