Drew Withers

Powered by Journalness 4.1.1

Quick Search:

[Advanced Search]

Journal Links

Users

Links
Friends and Family

Ubuntu Linux
Debian Linux
Linux On Laptops
Use OpenDNS
SourceForge.net Logo

rdiff-backup for simple but powerful backup

Ever since I got my new external 750GB hard drive I've been looking for a good way to use it for backing up my laptop. At first I was doing some basic backups using tar with some bash scripting for file rotation and then I would occasionally use partimage to get a whole image of the drive in case I ever needed to do a full restore. Then I was told about rdiff-backup.

This program is great. It maintains a mirror image of whatever you tell it to, and does incremental backups using a diff system so that it only backs up the portion of the file that has changed. So it doesn't fill up your drive any faster than it has to. It has a great restore feature and even works over ssh so you can backup remotely.
Edited on Wednesday, November 19, 2008 @ 10:27 am

Cleaning up old removed Debian packages

When using Debian there are two ways to remove packages:

The first: $ apt-get remove packagename

The second: $ dpkg --purge packagename

The former removes packages but leaves the configuration files. The latter purges the package as well as the configuration files. But what if you have been using apt-get remove or apt-get autoremove to get rid of packages and now you want to go back and remove all the configuration files for all those packages? Here are some very useful utilities that you can use to automate this process

dpkg --get-selections will give you a list of all installed packages followed by their installation status

grep deinstall will show the lines that are packages that were removed using remove instead of purge

cut -f 1 will grab just the column containing the package names excluding their status

xargs dpkg --purge will take the column of packages and run dpkg --purge on it

Code:
dpkg --get-selections | grep deinstall | cut -f 1 | xargs dpkg -P


Warning: Make sure to run the command without the last portion to see what will be removed. It can be very easy to accidentally remove packages by accident if you make a mistake.
Edited on Wednesday, November 12, 2008 @ 8:54 am

Toshiba Users Group

I created a Google Group for discussion of Toshiba computers. In my case the discussion will be centered around the Toshiba A215-S4747 laptop that I own and have written about in the past. Please feel free to join the discussion and find answers or contribute your own solutions.

Toshiba Users Group