To make a backup of the current switch software we like to secondary flash:
copy flash flash secondary
To transfer new switch software to the primary flash:
copy tftp flash IP-ADDR FILENAME-STR primary
To reboot the switch and use the new software:
boot