The quickest way to keep a long job alive over SSH, without a shell in the foreground.
tmux new -d -s backup 'rsync -a /source/ /target/'
The session starts detached and runs the command. Look at it later with tmux attach -t backup.
-d means detached, -s job names the session, and the quoted text is the command to run in it. You can log out of the server and the command carries on, since the command belongs to tmux and your SSH connection is out of the picture.
Compared with nohup or a trailing &, you get something you can look at again. Attach later and you see the output, scrolled and searchable, and you can type into it if the program asks a question. The catch is that the session ends with the command, so for anything you want to read afterwards, add a read or redirect the output to a file.
When the command exits, the session closes with it and its output is gone. Add ; read at the end of the command to keep the pane open.
Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close the session again with tmux kill-session -t scratch. Nothing else on your machine is touched.
Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official), On this site: tmux new -As work attaches to a session or creates it, one command for both, On this site: tmux new -As work attaches to a session or creates it