Updated the backup_size function to handle symlinks appropriately