-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updater recurses into datadirectory even though it's later excluded in createBackup()
#507
Comments
Interesting find, @lherbolt! That does appear sub-optimal (at least based on a cursory look on my part). |
There is already a function Maybe it would be enough to just use that function? |
I guess btw, the same is happening when deleting the data after update: |
createBackup()
Related: #397 (same solution will likely be used for both) |
Bug description
The updater.phar recurse into data directory which is later excluded. This is prolonging the creation of the backup while running update.
I believe there it comes from this:
Above creates iterator over all files in nextcloud folder, it;s called from the backup fucntion
public function createBackup() bellow. Once the iterator is constructed the data .well-knonw
and .rnd are excluded. It the data folder has significant amount files (in ma case is preview of
images) it takes significant amount of time to create the iterator of files which are excluded
later on
excludedElements:
I guess usage of something like would be better:
I am not php coder so it's taken from:
Steps to reproduce
Expected behavior
the data folder and others are excluded before creating the iterator
Installation method
Community Manual installation with Archive
Nextcloud Server version
25
Operating system
Other
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
[root@http-server-2 nextcloud]# sudo -u nextcloud ./occ app:list Enabled: - analytics: 4.11.0 - audioplayer: 3.4.0 - bookmarks: 13.1.1 - calendar: 4.5.2 - cloud_federation_api: 1.9.0 - contacts: 5.4.2 - contactsinteraction: 1.7.0 - dashboard: 7.6.0 - dav: 1.25.0 - federatedfilesharing: 1.16.0 - files: 1.21.1 - files_external: 1.18.0 - files_pdfviewer: 2.7.0 - files_rightclick: 1.5.0 - files_sharing: 1.18.0 - files_trashbin: 1.16.0 - files_versions: 1.19.1 - firstrunwizard: 2.15.0 - forms: 3.3.1 - logreader: 2.11.0 - lookup_server_connector: 1.14.0 - maps: 1.0.2 - nextcloud_announcements: 1.15.0 - notes: 4.8.1 - notifications: 2.14.0 - oauth2: 1.14.1 - password_policy: 1.16.0 - photos: 2.2.0 - previewgenerator: 5.3.0 - privacy: 1.10.0 - provisioning_api: 1.16.0 - recommendations: 1.5.0 - related_resources: 1.1.0 - serverinfo: 1.16.0 - settings: 1.8.0 - sharebymail: 1.16.0 - spreed: 16.0.6 - survey_client: 1.14.0 - text: 3.7.2 - theming: 2.1.1 - twofactor_backupcodes: 1.15.0 - updatenotification: 1.16.0 - user_ldap: 1.16.0 - user_status: 1.6.0 - viewer: 1.10.0 - weather_status: 1.6.0 - workflow_script: 1.11.2 - workflowengine: 2.8.0 Disabled: - activity: 2.18.0 (installed 2.17.0) - admin_audit: 1.16.0 - bruteforcesettings: 2.6.0 - circles: 26.0.0 (installed 25.0.0) - comments: 1.16.0 (installed 1.11.0) - encryption: 2.14.0 - federation: 1.16.0 (installed 1.11.0) - ldap_contacts_backend: 1.6.0 (installed 1.6.0) - ldap_write_support: 1.8.0 (installed 1.8.0) - support: 1.9.0 (installed 1.4.0) - suspicious_login: 4.4.0 - systemtags: 1.16.0 (installed 1.11.0) - twofactor_totp: 8.0.0
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: