Previous: Crontabs, Up: Maintenance
There are three operations that can be done on databases:
backupdir=/var/backups config=/etc/dgrey/config dgrey-cmd --config-file $config --local-connect dump-greylist-database \ | gzip > $backupdir/dgrey-greylist-database.gz dgrey-cmd --config-file $config --local-connect dump-awl-database \ | gzip $backupdir/dgrey-awl-database.gz
backupdir=/var/backups config=/etc/dgrey/config gzip -cd $backupdir/dgrey-greylist-database.gz \ | dgrey-cmd --config-file $config --local-connect --stdin restore-greylist-database gzip -cd $backupdir/dgrey-awl-database.gz \ | dgrey-cmd --config-file $config --local-connect --stdin restore-awl-database
Please note that these commands do not delete anything from the current databases, they only add to them.