51e8d287f9
$timeadded has now been included so that the backup / restore functions can now use this API rather than duplicating the code.