Skip to content

Backing up the index

Gaute Hope edited this page Jul 17, 2013 · 2 revisions

In case you or sup crashes the index it is nice to have a backup to restore the index from, to keep labels and message state.

The tool sup-dump can do this, and you can restore the backup using sup-sync. It can be useful to set up a cronjob backing the index up regularly, a daily backup script (called by a crontab job) might look like this:

#! /bin/bash

# Make a backup of the sup index

date=$(date "+%Y%m%d")

echo -n "dumping to: ~/.backup/sup/sup-index-${date}.xz.."
sup-dump | xz > "/home/${HOME}/.backup/sup/sup-index-${date}.xz"
echo done

which puts the backups in the directory ~/.backup/sup.

Clone this wiki locally