You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: node_backup.go
    path of file: ./repos/kubeedge/edge/pkg/edgehub/task/taskexecutor
    
    the code of the file until where you have to start completion: /*
Copyright 2023 The KubeEdge Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may 
    
func backupNode(taskReq commontypes.NodeTaskRequest) (event fsm.Event) {
	event = fsm.Event{
		Type:   "Backup",
		Action: api.ActionSuccess,
	}
	var err error
	defer func() {
		if err != nil {
			event.Action = api.ActionFailure
			event.Msg = err.Error()
		}
	}()
	backupPath := filepath.Join(util.KubeEdgeBackupPath, version.Get().String())
	err = backup(backupPath)
	if err != nil {
		cleanErr := os.Remove(backupPath)
		if cleanErr != nil {
			klog.Warningf("clean backup path failed: %s", err.Error())
		}
		return
	}
	return event
}