How To Remotely Backup A Web Server With No Install

I was researching simple methods for backing up a basic Linux web server, and I found an excellent script that handles files and databases, and also dumps everything to a remote server. I was looking for something a bit less complicated and overkill than Bacula, but more comprehensive than simply archiving the filesystem, and this [...]

Handling PostgreSQL Integrity Errors in Django

I have some basic Django code that attempts to insert a new record into a PostgreSQL database. It’s wrapped in a try/except statement in case a unique constraint is violated, in which case I’ll typically ignore it and move on.
So the general pattern is:

from django.db import IntegrityError
import models
try:
myNewRecord = models.MyTable(data=blah)
[...]