To backup your files with OneDrive, you'll need to turn on the feature in the "Backup" tab of your OneDrive settings.
OneNote automatically saves your work through its notebook syncing feature, but Windows PC users can disable and re-enable it at any time.