How to deduplicate MP4/MOV videos, PDFs, and heavy archives in Nextcloud with S3 and SMB external storage
Once a Nextcloud instance outgrows a single local NVMe drive and attaches S3 buckets or corporate SMB shares, storage bills climb fast from three invisible culprits: re-encoded MP4 and MOV deliveries, re-saved PDF contracts, and duplicated ZIP or TAR backups sitting across user homes and external mounts. This engineering runbook shows how oc_filecache, oc_storages, and oc_mounts track those assets, why naive CLI deduplicators and plain SHA-256 fail, and how to reclaim terabytes safely across Nextcloud 28 to 35.
Direct answer for Nextcloud storage administrators
To deduplicate videos, PDFs, and heavy archives on Nextcloud with S3 or SMB external storage without corrupting oc_filecache, combine streaming SHA-256 checks with FFmpeg keyframe hashing, PDF SimHash text fingerprints, and zero-extraction archive scans. Never run jdupes or rdfind directly on primary S3 buckets or mounted shares; delete exclusively via Nextcloud's VFS API and reconcile mounts cleanly.
1. Primary S3 vs External S3/SMB: how oc_storages, oc_mounts, and oc_filecache work
Before running any deduplication job on a multi-terabyte Nextcloud deployment, you have to distinguish between two storage topologies that look almost identical in the web interface yet behave in opposite ways under the hood: Primary Object Storage (S3) and External Storage (SMB/CIFS or S3 mounted via files_external). Mixing up the two is the fastest way to corrupt a production bucket or blow through your monthly S3 API request budget.
Primary Object Storage (S3)
Configured in config.php under objectstore, Primary S3 replaces the local data/ directory entirely. Nextcloud demands exclusive ownership of the bucket and writes every file as a flat opaque object keyed by urn:oid:<fileid>. Folder hierarchies, filenames, shares, and versions live exclusively in oc_filecache.
External Storage (SMB / S3)
Mounted through the files_external app, an SMB/CIFS share or external S3 bucket keeps human-readable folders on the remote server so legacy ERP tools or Windows workstations can still read them directly. Nextcloud maps that remote tree into user namespaces via oc_mounts and caches remote metadata in oc_filecache.
Across both designs, three relational tables coordinate every file operation inside Nextcloud's virtual filesystem (VFS):
oc_storagesassigns an integernumeric_idto every backend string identifierid(such asobject::user:alice,home::alice,smb::<hash>, oramazons3::<hash>).oc_mountsbinds a backendstorage_id(referencingoc_storages.numeric_id) and aroot_idto a user's virtualmount_point(for example/alice/files/Video-Archive-SMB/). One shared SMB storage can be mounted by 40 users simultaneously with 40 rows inoc_mountspointing to the samestorage_id.oc_filecacheindexes every known file and folder with itsfileid, parent directory,storage(matchingoc_storages.numeric_id), relativepath,size,mtime,mimetype, and synchronizationetag.
That three-table architecture explains two critical operational traps. First, if you run a filesystem deduplicator like jdupes or rdfind directly against a local NAS folder that is also exported to Nextcloud over SMB, Nextcloud's oc_filecache still holds stale rows and old folder ETags until a notification or rescan runs, causing sync conflicts across desktop clients. Second, if anyone deletes or hardlinks objects directly inside a Primary S3 bucket using aws s3 rm or rclone, occ files:scan cannot recover the broken mapping because the bucket holds zero directory metadata; users simply hit HTTP 404 errors when trying to open files listed in Nextcloud. As we detailed in our foundational runbook on removing duplicate files safely without breaking oc_filecache, all deletions must pass through OCP\Files\Node::delete().
2. Why occ files:scan and exact MD5/SHA-256 fail on MP4 videos, PDFs, and heavy archives
Administrators often assume that running occ files:scan --all followed by an exact MD5 or SHA-256 hash pass will clear 90% of wasted space. On raw disk images or unmodified camera uploads that holds true. On real-world creative, legal, and corporate Nextcloud servers loaded with video rushes, signed PDFs, and project archives, exact byte hashing misses the heaviest duplicates for structural reasons baked into each file format.
MP4 and MOV containers: moov atom faststart, remuxing, and bitrate transcodes
An ISO Base Media File Format container (.mp4, .mov, .m4v) is a tree of binary boxes (atoms), primarily ftyp (file type), moov (index, track headers, sample tables, timestamps), and mdat (the actual encoded video and audio payload). When a video editor exports a master clip or a web pipeline runs ffmpeg -i input.mp4 -c copy -movflags +faststart web.mp4 to make the video playable immediately in browsers, FFmpeg does not re-encode a single video frame. Yet moving the moov atom from the tail of the file to the front shifts every chunk offset inside the stco/co64 tables. Both files are visually and acoustically identical frame for frame, have the exact same duration, and occupy nearly the same byte count, yet their MD5 and SHA-256 digests share zero correlation.
The problem worsens when marketing or engineering teams store a 4.2 GiB 4K ProRes/H.265 camera original on an SMB mount alongside a 1.1 GiB 1080p H.264 review export and a remuxed .mkv copy inside a user's personal Nextcloud folder. Exact cryptographic hashes treat all three files as completely unrelated, leaving gigabytes of duplicate footage untouched across S3 and SMB.
PDF documents: incremental xref updates, linearization, and re-distillation
Portable Document Format files are notoriously unstable at the byte level. Opening a contract in Adobe Acrobat, macOS Preview, or LibreOffice and clicking Save without editing a single word appends an incremental cross-reference (xref) update, refreshes /ModDate and /Producer metadata dictionaries, and rotates the trailer /ID pair. Similarly, running a PDF through a web optimizer (linearization for byte-range serving), applying a lossless FlateDecode stream recompression, or exporting the same invoice twice from an ERP generates two visually identical PDFs with completely different SHA-256 hashes.
On corporate Nextcloud servers, accounting, HR, and legal teams routinely save 5 to 12 slightly re-saved copies of the same signed 40-page PDF across personal folders, Group Folders, and SMB archive shares. Even worse, scanned documents processed through different OCR engines alter the hidden text stream while keeping the page appearance identical.
Heavy ZIP and TAR.GZ archives: hidden redundancy and header drift
Project handoffs and quarterly exports often end up both unpacked inside a Nextcloud folder and archived inside project-final.zip, project-final-v2.zip, or backup-2026-11.tar.gz. Two ZIP archives containing the exact same 800 MiB of PDFs and video renders will produce different SHA-256 hashes if one was built on macOS (adding __MACOSX resource forks or .DS_Store entries), zipped with a different deflate compression level, or packed two seconds later with different directory modification timestamps. Worse still, an exact file scanner never notices that every single file inside a 6 GiB .tar.gz backup already exists verbatim in the parent Nextcloud folder.
Why occ files:scan does not solve deduplication or external storage drift
The occ files:scan command only reconciles filesystem presence and basic metadata (size, mtime, mimetype) with oc_filecache; it never computes content hashes, never inspects container payloads, and on large external SMB or S3 mounts, running a blind recursive occ files:scan --all triggers tens of thousands of PROPFIND, LIST, or SMB STAT calls that stall PHP workers and generate avoidable cloud API fees. On external mounts, targeted mount enumeration with occ files_external:list and real-time push listeners via occ files_external:notify are vastly cleaner than brute-force full scans.
3. Read-only SQL diagnostics on oc_filecache, oc_storages, and oc_mounts
Always measure before you scan. Running two read-only SQL queries against PostgreSQL or MariaDB/MySQL takes a few seconds, touches zero bytes on your S3 bucket or SMB NAS, and reveals exactly which storage backends hold the largest concentration of videos, PDFs, and archives.
Query 1: Map storage footprint by backend (Primary S3 vs External SMB/S3) and file class
This query joins oc_filecache with oc_storages so you can separate local or primary object storage from external SMB/S3 mounts and see how many gigabytes sit inside videos, PDFs, and compressed archives:
SELECT
s.numeric_id AS storage_num_id,
CASE
WHEN s.id LIKE 'object::%' THEN 'primary_s3_objectstore'
WHEN s.id LIKE 'smb::%' THEN 'external_smb'
WHEN s.id LIKE 'amazons3::%' THEN 'external_s3'
WHEN s.id LIKE 'local::%' THEN 'external_local'
WHEN s.id LIKE 'home::%' THEN 'local_home'
ELSE 'other_storage'
END AS storage_class,
CASE
WHEN LOWER(f.name) LIKE '%.mp4' OR LOWER(f.name) LIKE '%.mov'
OR LOWER(f.name) LIKE '%.mkv' OR LOWER(f.name) LIKE '%.webm'
OR LOWER(f.name) LIKE '%.avi' THEN 'video'
WHEN LOWER(f.name) LIKE '%.pdf' THEN 'pdf'
WHEN LOWER(f.name) LIKE '%.zip' OR LOWER(f.name) LIKE '%.tar'
OR LOWER(f.name) LIKE '%.tar.gz' OR LOWER(f.name) LIKE '%.tgz'
OR LOWER(f.name) LIKE '%.7z' THEN 'archives'
ELSE 'other_files'
END AS asset_bucket,
COUNT(f.fileid) AS file_count,
ROUND(SUM(f.size) / 1073741824.0, 2) AS total_gib
FROM oc_filecache f
INNER JOIN oc_storages s ON s.numeric_id = f.storage
WHERE f.size > 0
AND f.path LIKE 'files/%'
GROUP BY s.numeric_id, storage_class, asset_bucket
HAVING SUM(f.size) >= 1073741824
ORDER BY total_gib DESC;
Query 2: Detect cross-mount exact-size heavy candidates and orphaned external storages
Before streaming a single video frame across the network, identify exact-size clusters above 25 MiB that span multiple folders or mounts, and spot stale external storage rows that are no longer referenced in oc_mounts:
-- A. Heavy video/PDF/archive exact-size candidates (>= 25 MiB) across all mounts
SELECT
f.size,
ROUND(f.size / 1048576.0, 1) AS size_mib,
COUNT(*) AS copies,
ROUND((COUNT(*) - 1) * f.size / 1073741824.0, 2) AS potential_savings_gib,
MIN(f.name) AS sample_name
FROM oc_filecache f
WHERE f.size >= 26214400
AND f.path LIKE 'files/%'
AND (
LOWER(f.name) LIKE '%.mp4' OR LOWER(f.name) LIKE '%.mov'
OR LOWER(f.name) LIKE '%.mkv' OR LOWER(f.name) LIKE '%.pdf'
OR LOWER(f.name) LIKE '%.zip' OR LOWER(f.name) LIKE '%.tar.gz'
)
GROUP BY f.size
HAVING COUNT(*) > 1
ORDER BY potential_savings_gib DESC
LIMIT 30;
-- B. Ghost external storages still bloating oc_filecache without an active oc_mounts entry
SELECT
s.numeric_id,
s.id AS storage_identifier,
COUNT(f.fileid) AS cached_rows
FROM oc_storages s
LEFT JOIN oc_mounts m ON m.storage_id = s.numeric_id
LEFT JOIN oc_filecache f ON f.storage = s.numeric_id
WHERE (s.id LIKE 'smb::%' OR s.id LIKE 'amazons3::%')
AND m.id IS NULL
GROUP BY s.numeric_id, s.id
ORDER BY cached_rows DESC;
Notice how Query 2B protects you from chasing phantom gigabytes: administrators frequently unmount a retired SMB share or test S3 bucket in Nextcloud settings and assume the database rows vanish immediately. If ghost entries remain in oc_storages and oc_filecache, clean them up via occ files:cleanup rather than manual SQL DELETE statements so foreign-key hooks stay consistent.
4. The 4-stage hybrid pipeline: streaming SHA-256, FFmpeg keyframes, PDF SimHash, and zero-extraction archives
Cleaning heavy media and document repositories on remote S3 or SMB backends requires a progressive funnel that pushes the cheapest checks first and only reads remote bytes when a candidate passes metadata pre-filtering. That is the exact architecture behind pairing open-source Duplicate Finder v1.11.1 with the 4 format detection packs introduced in Duplicate Finder Pro v0.2.0.
Stage 1: Streaming SHA-256 exact deduplication (zero false positives)
Start with an exact-hash pass scoped by user or path. A proper Nextcloud scanner never loads a 4 GiB video into PHP memory; it reads through Nextcloud's stream wrapper in fixed chunks (or skips singletons whose size appears only once in oc_filecache). Because files with unique byte sizes can never be byte-identical duplicates, size pre-grouping avoids downloading roughly 70% to 85% of unique heavy files from S3 or SMB during Pass 1.
Stage 2: Multi-keyframe video fingerprinting via FFmpeg pipe:1 + perceptual dHash/pHash
Once byte-identical copies are gone, tackle re-encoded, re-muxed, and faststart-shifted videos (.mp4, .mov, .mkv, .webm, .avi). Instead of decoding an entire two-hour recording or writing temporary JPEG frames into /tmp (which quickly exhausts root partitions on containerized Nextcloud hosts), Pack 3 of Duplicate Finder Pro extracts four keyframes at 10%, 35%, 65%, and 90% of stream duration.
FFmpeg runs through strict proc_open argument arrays (zero shell interpolation, immune to crafted filenames containing spaces, quotes, or semicolons) and pipes downsampled raw frames directly over pipe:1 into a 64-bit perceptual hash comparator paired with a configurable duration tolerance (for example --duration-tolerance=2 seconds). Whether a clip was re-wrapped with -movflags +faststart, converted from 4K MOV to 1080p MP4, or stripped of a secondary subtitle track, the four keyframe signatures align cleanly.
Stage 3: PDF and Office SimHash text fingerprinting (plus visual dHash fallback)
For documents (.pdf, .docx, .odt, .xlsx, .pptx), Pack 1 normalizes extracted text using a pure-PHP XXE-safe parser or optional host pdftotext, strips volatile whitespace and PDF metadata headers, and computes a 64-bit SimHash signature. Two contracts or reports whose 64-bit SimHash signatures fall within a Hamming distance of <= 6 are grouped even after re-saving, linearization, or minor footer/date edits.
What about image-only scanned PDFs that contain zero selectable text layer? When the text extractor returns an empty token stream, the pipeline falls back to a first-page visual 64-bit dHash via Nextcloud's PreviewManager or Imagick, catching duplicate scanned invoices and signed NDAs without requiring a GPU or external cloud OCR service. For photo-heavy instances, this complements the perceptual HEIC/RAW burst workflow covered in our Nextcloud HEIC, RAW, Live Photos, and Memories deduplication guide.
Stage 4: Zero-extraction archive inspection and Nextcloud metadata merge
Unpacking a 10 GiB .zip or .tar.gz backup on a Nextcloud server just to inspect its contents risks filling local SSDs and triggering zip-bomb denial of service. Pack 4 inspects archives strictly in streaming mode: for .zip files it reads the Central Directory record (entry paths, uncompressed sizes, and CRC32 checksums), and for .tar / .tar.gz archives it parses USTAR/PAX headers sequentially without writing extracted files to disk.
That allows administrators to detect two high-value waste patterns immediately: (1) two archives built on different dates that hold the exact same member payloads, and (2) an archive whose contents already live uncompressed elsewhere in Nextcloud. Before moving any redundant copy to files_trashbin via OCP\Files\Node::delete(), Pack 4 also merges collaborative Nextcloud metadata (system tags, comments, and favorites) onto the surviving master fileid so teams never lose annotations when cleaning shared folders.
Controlling S3 egress and SMB latency during multi-format scans
External S3 providers such as AWS S3 or Wasabi bill API calls or egress bandwidth if you scan blindly every night. Scope scans by explicit folder paths or user groups, start with --min-size=10M for video/archive sweeps, run heavy passes off-peak, and rely on Duplicate Finder Pro's cached signatures so unchanged files (matching fileid and mtime) are never re-fetched on subsequent audits.
5. Tool comparison: Exact SHA-256 vs rdfind/jdupes vs Duplicate Finder OSS vs Pro v0.2
Choosing the right tool depends on whether your Nextcloud storage is local POSIX, Primary S3, or External SMB/S3, and whether your duplicates are byte-identical or format-drifted. The matrix below compares the four real-world options sysadmins evaluate in production.
| Capability | Manual SHA-256 script | rdfind / jdupes CLI |
Duplicate Finder Free (v1.11.1, AGPL-3.0) | Duplicate Finder Pro v0.2.0 (19 EUR one-time) |
|---|---|---|---|---|
| Primary S3 Object Storage safe | No (bucket holds opaque urn:oid:* blobs). |
No. Cannot run on S3 buckets; breaks DB if forced. | Yes. Streams through Nextcloud VFS and oc_filecache. |
Yes. 100% VFS-native, respects oc_filecache and oc_mounts. |
| External SMB / S3 mounts | Desyncs oc_filecache if deleting outside Nextcloud. |
POSIX mount only; causes ETag drift and desktop resync storms. | Yes. Scans mounted user paths via VFS, deletes via Node::delete(). |
Yes. Multi-user governance across local, S3, and SMB mounts. |
| Re-encoded / faststart MP4 & MOV | Misses 100% of re-muxed or transcoded clips. | Misses 100% (strict byte comparison only). | Exact byte duplicates only. | Yes (Pack 3). 4-keyframe FFmpeg pipe:1 signatures + duration tolerance. |
| Re-saved / linearized PDFs | Misses any xref or /ModDate drift. |
Misses any byte-level PDF change. | Exact byte duplicates only. | Yes (Pack 1). Pure-PHP/pdftotext 64-bit SimHash + scanned dHash fallback. |
| Heavy ZIP / TAR.GZ archives | Compares outer archive bytes only. | Compares outer archive bytes only. | Outer archive exact hash only. | Yes (Pack 4). Zero-extraction CRC32/USTAR streaming + loose-file matching. |
| Metadata & governance safety | Zero trashbin, loses shares, tags, comments. | Hardlinks/deletes break Nextcloud quotas, versions, and Live Photos. | Origin Folders, Live Photo pair guard, Nextcloud trashbin safety. | Full governance: merges tags/comments/favorites, dry-run policies, SHA-256 audit chain, offline Ed25519 key. |
6. Step-by-step occ runbook for S3 and SMB production environments
Follow this five-step sequence whenever you audit and clean a production Nextcloud 28 to 35 instance connected to S3 or SMB storage. Every destructive action stays behind --dry-run until you verify the JSON/text audit output and confirm your backup snapshot.
Step 1: Verify external mounts, binaries, and offline license status
Confirm which external mounts are active, verify that ffmpeg and optional pdftotext (from poppler-utils) are installed on the Nextcloud host, and check that your offline Ed25519 license validates cleanly with zero outbound network traffic:
# 1. List all configured External Storage mounts (SMB, S3, SFTP) and their mount IDs
sudo -u www-data php occ files_external:list
# 2. Verify host binaries for Pack 1 (PDF) and Pack 3 (Video/Audio)
command -v ffmpeg pdftotext fpcalc
ffmpeg -version | head -n 1
pdftotext -v 2>&1 | head -n 1
# 3. Verify Duplicate Finder Pro offline Ed25519 license and health
sudo -u www-data php occ duplicatefinder_pro:license:status
sudo -u www-data php occ duplicatefinder_pro:health:check
Step 2: Run Pass 1 exact SHA deduplication on targeted paths
Clear exact byte duplicates first using open-source Duplicate Finder, scoping the first run to a specific user or mount folder so you can benchmark throughput on your S3 or SMB link:
# Index a single user's mounted SMB/S3 media directory first
sudo -u www-data php occ duplicates:find-all --user=ops_lead --path="./Video-Archive-SMB"
# Report exact duplicates larger than 10 MiB sorted by wasted bytes
sudo -u www-data php occ duplicates:stats --user=ops_lead --min-size=10M --top=25 --output=table
# Spot entire duplicated project folders before touching individual files
sudo -u www-data php occ duplicates:folders --user=ops_lead --min-files=5 --min-size=100M
Step 3: Execute dry-run scans for PDF SimHash, Video keyframes, and Zero-Extraction Archives
Next, run the three heavy-format packs in strict --dry-run mode to produce an auditable report of near-duplicate PDFs, re-encoded videos, and redundant archives without modifying a single file:
# 1. Pack 1: Detect re-saved or linearized PDFs and Office docs (64-bit SimHash <= 6)
sudo -u www-data php occ duplicatefinder-pro:scan-formats \
--pack=documents --simhash-threshold=6 --dry-run --format=json > /tmp/nc-pdf-audit.json
# 2. Pack 3: Detect re-encoded/faststart MP4, MOV, MKV via 4-keyframe FFmpeg pipe:1
sudo -u www-data php occ duplicatefinder-pro:scan-formats \
--pack=media --duration-tolerance=2 --dry-run --format=json > /tmp/nc-video-audit.json
# 3. Pack 4: Zero-extraction ZIP and TAR.GZ archive comparison against loose files
sudo -u www-data php occ duplicatefinder-pro:scan-formats \
--pack=archives --dry-run --format=json > /tmp/nc-archives-audit.json
# 4. Optional fleet-wide GDPR-safe governance summary across all users
sudo -u www-data php occ duplicatefinder_pro:governance:report --privacy-mode --format=markdown
Step 4: Apply retention rules via VFS deletion and verify the SHA-256 audit chain
Before enabling cleanup policies, register your authoritative production paths (for instance /Video-Masters or /Signed-Contracts-Archive) as Origin Folders or configure keep_priority_folder / keep_highest_resolution policies. Duplicate Finder Pro enforces a hard last-copy guard that refuses to delete the final surviving master in any cluster, merges tags, comments, and favorites onto the kept file, and routes every removed duplicate through OCP\Files\Node::delete() into files_trashbin.
Step 5: Reconcile external mounts, preview caches, trashbin, and audit logs
After your team's trashbin review window expires (typically 7 to 14 days for enterprise deployments), reclaim the underlying S3 objects or SMB disk blocks cleanly and verify audit integrity:
# 1. Verify the tamper-evident SHA-256 hash-chained audit log
sudo -u www-data php occ duplicatefinder_pro:audit:verify
# 2. Clean unreferenced oc_filecache entries safely online
sudo -u www-data php occ files:cleanup
# 3. Remove orphaned video/PDF preview thumbnails
sudo -u www-data php occ preview:cleanup
# 4. Keep SMB external storage synced in real time (run via systemd unit)
sudo -u www-data php occ files_external:notify 1 -v
# 5. Once users confirm recovery is not needed, expire aged trashbin items
sudo -u www-data php occ trashbin:expire
Remember one subtle detail on S3 versioning: if your S3 provider has Bucket Versioning enabled, deleting a duplicate through Nextcloud creates a Delete Marker while keeping the historical object version billable until your S3 Lifecycle Policy expires noncurrent versions (for example after 30 days). Pair your Nextcloud deduplication schedule with an S3 noncurrent-version expiration rule so reclaimed gigabytes actually appear on your next cloud invoice.
If your organization runs multi-terabyte Nextcloud clusters on Hetzner, OVHcloud, or AWS S3 and wants a fixed-scope upgrade or SLA maintenance contract, review our Open Source Pro Support & SLA page or manage licenses and invoices directly in the Eclipse Client Portal.
7. Frequently asked questions
Why can I not run jdupes or rdfind directly on a Nextcloud primary S3 bucket?
When Nextcloud uses S3 as Primary Object Storage, the bucket stores opaque blobs named urn:oid:<fileid> while all directory paths, filenames, and shares exist solely inside oc_filecache. Deleting or replacing objects directly in S3 leaves broken fileid pointers in the database, causes 404 download errors for users, and cannot be rebuilt with occ files:scan.
Why do two identical MP4 videos produce completely different SHA-256 checksums?
Re-muxing an MP4 with FFmpeg -movflags +faststart moves the moov atom from the end of the file to the front for web streaming, which shifts byte offsets across the entire container. Re-encoding at a lower bitrate, trimming an audio track, or changing container metadata also alters every byte, which is why multi-keyframe perceptual signatures are required.
How can you detect duplicate PDFs that were re-saved, linearized, or exported from different tools?
Re-saving or linearizing a PDF rewrites cross-reference tables, /ModDate timestamps, and trailer /ID hashes even when the visible contract or invoice text is unchanged. Extracting normalized text with a pure-PHP parser or pdftotext and hashing it with 64-bit SimHash (Hamming threshold <= 6) matches near-identical text PDFs, while first-page visual dHash handles image-only scans.
Will scanning videos and archives on S3 or SMB external storage inflate egress costs or fill /tmp?
Unfiltered CLI tools download every gigabyte over the wire and unpack archives into temporary directories. A storage-aware Nextcloud workflow first filters candidates in oc_filecache by mount, extension, and size, streams FFmpeg keyframes through pipe:1 without writing temporary frames to disk, and reads ZIP central directories or TAR headers without extraction.
How do I keep SMB external storage mounts synchronized in oc_filecache after deduplication?
Perform every deletion through Nextcloud's OCP\Files\Node::delete API so oc_filecache, ETags, and shares stay coherent immediately. If third-party clients also write directly to the SMB server, run occ files_external:notify <mount_id> under systemd for real-time change events and schedule periodic occ files_external:scan or occ files:cleanup maintenance passes.
Clean Nextcloud videos, PDFs, and S3/SMB storage safely, 100% offline
Start with free open-source Duplicate Finder v1.11.1 (AGPL-3.0) for exact SHA-256 deduplication and VFS safety across Nextcloud 28 to 35. Upgrade to Duplicate Finder Pro v0.2.0 (19 EUR one-time offline Ed25519 license, zero telemetry) for Pack 1 Documents/PDF SimHash, Pack 2 HEIC/RAW bursts, Pack 3 FFmpeg video/audio fingerprinting, and Pack 4 zero-extraction archives with Nextcloud metadata merge.
Related technical guides and resources: Nextcloud Remove Duplicate Files Safely (oc_filecache) · Nextcloud Deduplicate Photos (HEIC, RAW & Memories) · Open Source Pro Support · Duplicate Finder on Nextcloud App Store · Duplicate Finder on GitHub