2004-10-03

Trying to make backups on CD... I noticed that my home directory no longer fits on one CD... Why? I fired up *xdiskusage* and saw that I have too much mail!

Diskusage for /home/alex

This is what I am using:

#! /usr/bin/zsh -f
1. -R for permissions!
tar cjf Mail.tar.bz --exclude Mail/Incoming --exclude Mail/spam Mail
mkisofs -graft-points -R -no-bak -o /mnt/cdimage/backup.iso \
    -x '/home/alex/mutella' \
    -x '/home/*/.mozilla/*/*/Cache' \
    -x '/home/*/.netscape/cache' \
    -x '/home/*/.galeon/mozilla/galeon/Cache' \
    -x '/home/*/.w3m/w3m*' \
    -x '/home/*/Mail' \
    -x '/home/*/.gimp*' \
    -x '/home/alex/torrent' \
    -x '/home/alex/WWW/emacswiki/test' \
    -x '/home/alex/.ccache' \
    -x '/home/alex/src' \
    -x '/home/alex/pics' \
    -x '/home/alex/*.tar.gz' \
    -x '/home/alex/Backups' \
    -x '/home/*/.emacs.d/auto-save-list' \
    home/alex=/home/alex

Comments

(Please contact me if you want to remove your comment.)

Wow. I didn’t know about xdiskusage. Neat stuff. Just found some disk hogs and killed them. Thanks. 😄

– NoufalIbrahim 2004-10-04 08:09 UTC

NoufalIbrahim

---

Heh. I discovered this tool when I ran out of disk-space on my root file-system without me knowing why. It turned out to be apt-get’s cache in `/var`... All the ol’ debs just kept accumulating.

– Alex Schroeder 2004-10-04 16:39 UTC

Alex Schroeder

---