Hi,
In the first instance, you can exclude the “Others” section of the backup. It’s mostly standard wp files that are included in every install and cache (which which will be purged after the restore in most caching plugins)
If you do want to restore the “Others”, please try the following;
1- Ensure the file and directory permiyou ssions are correct on your server. The typical permissions for WordPress files should be set to 644, and for directories, they should be 755. You can modify these permissions using an FTP client like FileZilla or through your hosting control panel’s File Manager.
2- Make sure you are using a recent PHP version supported by WordPress (ideally PHP 8.0 or higher). Many issues can be resolved by simply updating to the latest PHP version.
3- Check if there are old or redundant files related to a previously deleted or inactive plugin/theme. If you find any, delete the unused files to prevent any conflicts or errors.
4- Open the file mentioned in the error message (class-wp-filesystem-direct.php) and navigate to line 173. You may notice a function call such as chmod, which attempts to change the file permissions. Examine the file path given to this function to identify where the issue is originating.