cd /tmp/tbup

# get read method to use
getmet r readmethod read

# get method-specific params (if needed)
if [ -f $bupbin/$readmethod\.rp ]; then
 cd /tmp/tbup
 source $readmethod\.rp
 cd /tmp/tbup
fi


#note: the read method may force an unpackmethod by setting
#pre_unpackmethod, but this is not recommended, it should set
#dea_unpackmethod instead.

# get unpack method to use
getmet u unpackmethod unpack

# get method-specific params (if needed)
if [ -f $bupbin/$unpackmethod\.up ]; then
 cd /tmp/tbup
 source $unpackmethod\.up
 cd /tmp/tbup
fi
