Exclude a directory from tar

Damn tar is kinda weird .. usually, you specifiy excludes in the manner of –exclude="/path/to/exclude". But tar needs to do things differently. 1 2 tar -cvpf /xen-dom0.tar --exclude "/proc/*" --exclude "/sys/*" --exclude "/dev/*" --exclude "/xen-dom0.tar" /

July 24, 2009 · 1 min · 36 words · christian

TSM: Restoring the database/recovery log to a point-in-time

Well, my co-worker just called on my cell (it’s Friday, 16:00), and asked me which start-up script he needed to change in order to restore the database. My first response was, “ummm, that’s gonna be hard, we’re using heartbeat”. Okay, so after a bit of asking I got out of him what he wanted to achieve by changing the start-up script. Apparently he did something to crash Tivoli Storage Manager (or rather repeatedly crash it) and wanted to restore the database. He talked to one of the systems partner we do have (and I’m happy we have them most of the time), who in return told him how to do it, but forgot a minute after he hung up the phone. ...

April 24, 2009 · 2 min · 303 words · christian