Open jplitza opened 1 year ago
Agreed. The cause is likely here:
isFile()
is resolving the target of the symbolic link. Need to add an isLink()
check with additional handling for symbolic links in the backups.
In the mean time, using --no-backup
may be a workaround.
⚠️ This issue respects the following points: ⚠️
Bug description
When running the updater, it backups symlinked files multiple times.
Steps to reproduce
apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2.9.1
in its symlinksapps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2
andapps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so
Expected behavior
apps/recognize/node_modules/@tensorflow/tfjs-node-gpu/deps/lib/libtensorflow.so.2.9.1
is only backed up once, and the symlinks are preserved as such.Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response