Entries from September 2012 ↓

Some handy bacula commands

Show what files will be backed up:

echo "estimate job=client.vanutsteen.nl listing client=client.vanutsteen.nl fileset=Server" | bconsole

List all files backuped in a particular job:

echo "list files jobid=12"  | bconsole

How to repair an SQLite database

echo ".dump" | sqlite3 old.db | sqlite3 new.db

Explanation: pipe “.dump” to sqlite and use that output (the dump itself) to fill the new.db database.

Cleaning up Git

I had this huge git repository (1.9 gigabyte) and I couldn’t discover WHY is was SO big. After reading up on some git cleaning et cetera I did a `git gc`. I went from 1.9g to 12mb (megabytes yes). Unbelievable…

git-gc – Cleanup unnecessary files and optimize the local repository

Ubuntu & special characters

https://help.ubuntu.com/12.04/ubuntu-help/tips-specialchars.html

I set my Compose Key to Right Alt.