It depends. That’s my favorite Answer. Because it depends, what you are doing. If you are private user or a User of an enterprise company. You could do it on different ways:
As an enterprise user, the admins may set this entry as a Group Policy called
Continue syncing when devices have battery saver mode turned on
It is a Group Policy in the user configuration
This setting lets you turn off the auto-pause feature for devices that have battery saver mode turned on.
If you enable this setting, syncing will continue when users turn on battery saver mode. OneDrive will not automatically pause syncing.
If you disable or do not configure this setting, syncing will pause automatically when battery saver mode is detected and a notification will be displayed.
Users can choose not to pause syncing by clicking "Sync Anyway" in the notification. When syncing is paused, users can resume syncing by clicking the OneDrive cloud icon in the notification area of the taskbar and then clicking the alert at the top of the activity center.
Enabling this policy sets the following registry key value to 1.
[HKCU\SOFTWARE\Policies\Microsoft\OneDrive]"DisablePauseOnBatterySaver"=dword:00000001
Remarks: Keep in mind, that the group policy is working in the other direction
Source: Microsoft Docs
Again, an administrator may set this function via Group Policy called:
Continue syncing on metered networks
It is a Group Policy in the user configuration and this setting lets you turn off the auto-pause feature when devices connect to metered networks.
If you enable this setting, syncing will continue when devices are on a metered network. OneDrive will not automatically pause syncing.
If you disable or do not configure this setting, syncing will pause automatically when a metered network is detected and a notification will be displayed. Users can choose not to pause by clicking "Sync Anyway" in the notification. When syncing is paused, users can resume syncing by clicking the OneDrive cloud icon in the notification area of the taskbar and then clicking the alert at the top of the activity center.
Enabling this policy sets the following registry key value to 1.
[HKCU\SOFTWARE\Policies\Microsoft\OneDrive DisablePauseOnMeteredNetwork"=dword:00000001
Remarks: Keep in mind, that the group policy is working in the other direction
Source: Microsoft Docs