<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>blog.johanv.org (Posts about internet)</title><link>https://blog.johanv.org/</link><description></description><atom:link href="https://blog.johanv.org/en/categories/internet.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="https://blog.johanv.org/pages/contact/"&gt;Johan Vervloet&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Wed, 29 Oct 2025 18:31:18 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Backing up your remote website using sshfs and rsnapshot</title><link>https://blog.johanv.org/en/posts/old/node-182/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;Recently, I was introduced to rsnapshot, which is a great tool for
simple backup. It uses rsync to backup files. And it also uses hard
links, so it can provide hourly 'snapshots' while it stores unchanged
files only once. I wanted to use rsnapshot for backing up the files I
have on my website at my hosting providers' server, but sadly enough, my
hosting provider doesn't provide rsync support - damn cheap hosting
;-(.&lt;/p&gt;
&lt;p&gt;Luckily I do have ssh access to my files, and using sshfs you
can work around the missing rsync on the server. (Probably much slower
than with rsync, and I am also unable to keep the permissions of the
files, but hey - it's better than nothing.)&lt;/p&gt;
&lt;p&gt;If your home server is
Debian-based, you can install the required packages using
apt:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  apt-get install sshfs fuse-utils rsnapshot
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;(otherwise use
yum or pacman or whatever tool your distribution provides.)&lt;/p&gt;
&lt;p&gt;First
you want to make sure that the root user of your home server can ssh to
my web server without password, so that the remote file system can
automatically be mounted onto your own computer. This can be done with
public key authentication.&lt;/p&gt;
&lt;p&gt;Check whether the root user has a file
&lt;code&gt;~/.ssh/id_rsa.pub&lt;/code&gt; in it's home directory. If the file is there,
that's great. If not, you shoulde generate it, issuing the
command&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  ssh-keyhgen -t rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Don't enter a password, and store
the file on the default location.&lt;/p&gt;
&lt;p&gt;Now you have to add the contents
of the &lt;code&gt;id_rsa.pub&lt;/code&gt; on your computer at home to the
&lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt; file in your home directory on the remote web
server. If the remote file doesn't exist, just create it.&lt;/p&gt;
&lt;p&gt;This
should enable you ssh'ing from your computer at home to your web server
without having to enter a password.&lt;/p&gt;
&lt;p&gt;The following step is using
sshfs to access your remote files via a mount point on your home server.
Create a mount point:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  mkdir /mnt/webserver
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and add a line to
&lt;code&gt;/etc/fstab&lt;/code&gt;: (change remote username, server name and homedir to your
situation)&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;sshfs#remoteuser&lt;/span&gt;&lt;span class="nv"&gt;@your&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;webserver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nl"&gt;org&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;your&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;homedir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mnt&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;webserver&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fuse&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;idmap&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;none&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;uid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;gid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If
you now enter the command&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  mount /mnt/webserver
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;you should be
able to find your remote files en directories under the
&lt;code&gt;/mnt/webserver&lt;/code&gt; mount point. The remote files have root as user and
group, this is OK since rsnapshot will be run as root.&lt;/p&gt;
&lt;p&gt;The next
step is configuring rsnapshot. Open &lt;code&gt;/etc/rsnapshot.conf&lt;/code&gt;, and read
the part about trailing slashes and tabs: if you change the
configuration file, you should put a slash after each directory name,
and use tabs between elements on a line. So make sure your text editor
saves tabs as tabs!&lt;/p&gt;
&lt;p&gt;Search the line that starts with
&lt;code&gt;rsnapshot_root&lt;/code&gt;, and change it to&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  snapshot_root   /path/to/backup/location/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Important:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Make sure to put a tab between the parts, and add a trailing slash&lt;/li&gt;
&lt;li&gt;The file system of rsnapshot_root should support hard links (ext3,
   ext4 are fine)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then search for lines starting with 'backup'. There are some
examples for backing up &lt;code&gt;/home&lt;/code&gt;, &lt;code&gt;/etc&lt;/code&gt; and &lt;code&gt;/usr/local&lt;/code&gt;. If you
want to back up them as well, then you can leave them. If not, just
comment them out. The important thing is adding this
line:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  backup  /mnt/webserver/        localhost/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you now
issue the command&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  rsnapshot hourly
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;a folder &lt;code&gt;hourly.0&lt;/code&gt; will
be created under your rsnapshot root, containing a copy of the files on
your webserver. If after that you type&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  rsnapshot hourly
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;again,
this folder is renamed to &lt;code&gt;hourly.1&lt;/code&gt;, and a new folder &lt;code&gt;hourly.0&lt;/code&gt; is
created with the current files on your server. This second backup won't
take a lot of disk space though, because the files which are the same in
&lt;code&gt;hourly.0&lt;/code&gt; and &lt;code&gt;hourly.1&lt;/code&gt; will only be stored once on the file
system.&lt;/p&gt;
&lt;p&gt;Now open &lt;code&gt;/etc/cron.d/rsnapshot&lt;/code&gt;. If you uncomment the
cron lines in there, rsnapshot will be run automatically. The monthly
backups will be taken the first of the month, the weekly backups on
wednesday, the daily backups every morning at 3:30, and the hourly
backups every 4 hours.&lt;/p&gt;
&lt;p&gt;Now I still have to figure out how I can
backup my database. I don't have command line mysql on the server, so I
will have to use the mysql web interface. I will keep you informed when
I get this working automatically :)&lt;/p&gt;&lt;/div&gt;</description><guid>https://blog.johanv.org/en/posts/old/node-182/</guid><pubDate>Tue, 23 Aug 2011 21:19:08 GMT</pubDate></item><item><title>Quit Facebook Day</title><link>https://blog.johanv.org/en/posts/old/node-135/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;Vandaag is het &lt;a class="reference external" href="http://www.quitfacebookday.com/"&gt;Quit Facebook Day&lt;/a&gt;.
De organisatoren roepen op om je Facebookaccount af te sluiten, uit
onvrede met het omstreden privacybeleid van de sociale-netwerksite. Maar
blijkbaar &lt;a class="reference external" href="http://www.standaard.be/artikel/detail.aspx?artikelid=G82QS2HC&amp;amp;subsection=64"&gt;zijn er maar weinig Facebookgebruikers die gehoor geven aan
de
oproep.&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Ik
heb zelf zo geen problemen met Facebooks privacybeleid; ik gebruik
Facebook om zaken te publiceren die heel de wereld mag weten. Ik ben mij
ervan bewust dat er hiervoor veel betere technologieën bestaan, maar
jammer genoeg hebben mijn berichten op Facebook een veel groter bereik
dan die op identi.ca. Voorlopig ook geen ‘Quit Facebook Day’ voor mij,
hoe jammer ook. :-/&lt;/p&gt;&lt;/div&gt;</description><guid>https://blog.johanv.org/en/posts/old/node-135/</guid><pubDate>Mon, 31 May 2010 11:22:19 GMT</pubDate></item><item><title>De websites van de politieke partijen</title><link>https://blog.johanv.org/en/posts/old/node-133/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;Ik heb het al op facebook gezet, maar dit is eigenlijk wel de moeite
waard voor een blog post.&lt;/p&gt;
&lt;p&gt;Op 13 juni zijn het verkiezingen. Grote
thema's zullen waarschijnlijk zijn: BHV en de besparingen waar we voor
staan. Daar ga ik het even niet over hebben.&lt;/p&gt;
&lt;p&gt;Wat me nu
interesseert, is welke software de politieke partijen gebruiken voor hun
publieke website. &lt;a class="reference external" href="http://uptime.netcraft.com/up/graph"&gt;Netcraft&lt;/a&gt;
heeft een handig tooltje om dit na te gaan: je tikt een website in, en
je krijgt te zien wat er op de server draait.&lt;/p&gt;
&lt;p&gt;Ziehier het
resultaat: (in alfabetische volgorde)&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://uptime.netcraft.com/up/graph?site=www.cdenv.be"&gt;CD&amp;amp;V&lt;/a&gt;:
Apache op Debian (Linux)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://uptime.netcraft.com/up/graph?site=www.groen.be"&gt;Groen!&lt;/a&gt;:
IIS op Windows Server 2008&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://uptime.netcraft.com/up/graph?site=www.lijstdedecker.com"&gt;LDD&lt;/a&gt;:
Apache op Debian (Linux)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://uptime.netcraft.com/up/graph?site=www.s-p-a.be"&gt;SP.A&lt;/a&gt;:
Apache op Debian (Linux)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://uptime.netcraft.com/up/graph?site=www.vlaamsbelang.org"&gt;VB&lt;/a&gt;:
Apache op Fedora (Linux)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://uptime.netcraft.com/up/graph?site=www.vld.be"&gt;OpenVLD&lt;/a&gt;:
Apache op CentOS (Linux)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Opvallend is dat SP.A en LDD onlangs IIS inruilden voor Apache,
terwijl Groen! in 2003 de omgekeerde beweging maakte.&lt;/p&gt;&lt;/div&gt;</description><guid>https://blog.johanv.org/en/posts/old/node-133/</guid><pubDate>Thu, 20 May 2010 12:14:19 GMT</pubDate></item><item><title>Geen open standaard voor video in Internet Explorer 9</title><link>https://blog.johanv.org/en/posts/old/node-132/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;De aankomende nieuwe versie van Internet Explorer, &lt;a class="reference external" href="http://webwereld.nl/nieuws/65463/microsoft-brengt-preview-internet-explorer-9-uit.html"&gt;IE9, zal overweg
kunnen met HTML
5&lt;/a&gt;.
Dat wordt onder andere aangekondigd op Microsofts
&lt;a class="reference external" href="http://ie.microsoft.com/testdrive/"&gt;‘testdrive’&lt;/a&gt;-website voor
Internet Explorer. &lt;a class="reference external" href="http://nl.wikipedia.org/wiki/HTML5"&gt;HTML5&lt;/a&gt; is de
laatste, nog in ontwikkeling zijnde versie van de
&lt;a class="reference external" href="http://nl.wikipedia.org/wiki/Html"&gt;HTML-standaard&lt;/a&gt; voor
website-opmaak.&lt;/p&gt;
&lt;p&gt;Microsoft die standaarden ondersteunt, dat zijn we
niet gewoon. Uiteraard zit er een addertje :-)&lt;/p&gt;
&lt;p&gt;HTML5 biedt onder
meer de mogelijkheid aan om videobeelden af te spelen in een webpagina,
zonder dat je daar bijvoorbeeld &lt;a class="reference external" href="http://nl.wikipedia.org/wiki/Flash_Player''"&gt;een Flash
plugin&lt;/a&gt; (brr!) voor moet
installeren.&lt;/p&gt;
&lt;p&gt;Om een filmpje te digitaliseren, zijn er
verschillende formaten beschikbaar. Typisch wil je dat je zo weinig
mogelijk diskruimte nodig hebt voor je filmpje. Je moet dus je filmpje
comprimeren, dat scheelt ook wel wat in downloadtijd. En nu komt de kat
op de koord.&lt;/p&gt;
&lt;p&gt;Het
&lt;a class="reference external" href="http://nl.wikipedia.org/wiki/Theora_%28compressieformaat%29"&gt;Theora&lt;/a&gt;-formaat
is de gangbare open standaard. De omschrijving van dit formaat is vrij
beschikbaar, en voor zover geweten zijn er geen patenten op van
toepassing.&lt;/p&gt;
&lt;p&gt;Microsoft zal geen ondersteuning aanbieden voor het
Theora-formaat in Internet Explorer 9. Enkel
&lt;a class="reference external" href="http://nl.wikipedia.org/wiki/H.264"&gt;H.264&lt;/a&gt; zal ondersteund worden.
H.264 gebruikt wel gepatenteerde technologie, en in principe moet je er
dus voor betalen. ('t Is te zeggen, in landen waar softwarepatenten van
toepassing zijn; in Europa is dat vooralsnog het geval niet. Gelukkig
maar.)&lt;/p&gt;
&lt;p&gt;MPEG LA, de bezitter van de betreffende patenten, belooft
wel dat
&lt;a class="reference external" href="http://css.dzone.com/articles/h264-royalty-free-until-2016"&gt;H.264&lt;/a&gt;
tot 2016 gratis gebruikt kan worden. Maar wie zal zeggen of ze niet van
gedacht zullen veranderen? En wat na 2016?&lt;/p&gt;
&lt;p&gt;Enfin, voor Microsoft is
dat alleszins geen probeem. Volgens hun redenering is het maar een
kwestie van wachten totdat er iemand opduikt die zal beweren dat Theora
zijn patenten schendt. En blijkbaar &lt;a class="reference external" href="http://techie-buzz.com/tech-news/steve-jobs-a-patent-pool-is-being-assembled-to-go-after-theora.html"&gt;weet Steve Jobs daar meer van
af&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Conclusie:
Awoe patenten, awoe awoe awoe! :-)&lt;/p&gt;&lt;/div&gt;</description><guid>https://blog.johanv.org/en/posts/old/node-132/</guid><pubDate>Mon, 03 May 2010 11:04:50 GMT</pubDate></item><item><title>40 jaar Internet!</title><link>https://blog.johanv.org/en/posts/old/node-46/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;p&gt;Vandaag vieren we niet enkel de release van
&lt;a class="reference external" href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt; 9.10, maar ook &lt;a class="reference external" href="http://www.standaard.be/Artikel/Detail.aspx?artikelId=DS2H6APA"&gt;40 jaar
Internet&lt;/a&gt;!
Hip hip hoera!&lt;/p&gt;</description><guid>https://blog.johanv.org/en/posts/old/node-46/</guid><pubDate>Thu, 29 Oct 2009 11:31:54 GMT</pubDate></item></channel></rss>