Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Document files:checksums:verify command #4014

Closed
IljaN opened this issue Apr 11, 2018 · 1 comment
Closed

Document files:checksums:verify command #4014

IljaN opened this issue Apr 11, 2018 · 1 comment
Assignees

Comments

@IljaN
Copy link

IljaN commented Apr 11, 2018

Command scans the file-cache and compares the checksum in file-cache with the actual checksum of the file.

The operation might take very-long with a lot or big file and use a lot of memory, because every file needs to be read in to memory three times to compute all checksums.

Options:
-r / -- repair: Must be given to repair checksum mismatch, without it mismatches will be just printed to the terminal.
-u /--user: Only scan files of a specific user
-p / --path: Only scan specific path

Note that --user and --path option must be used exclusivly

-v / : Verbose, prints every file which is scanned or skipped to the terminal

The operating procedure to use this command should be that the admin scans the files, then manually verifies the integrity of mismatches and after that uses the repair command to repair the broken file-cache entries.

Note that files in cache without checksum are ignored. Files without checksum can appear in flie-cache when an external storage is mounted. For these files checksums are only computed on first download/change.

PR: owncloud/core#31008
Issue: owncloud/core#30951

@IljaN
Copy link
Author

IljaN commented Apr 11, 2018

Also note that this command will not work with encryption

settermjd added a commit that referenced this issue Apr 25, 2018
Updates the list of files commands to include this command, along with a
brief description and sample output. This fixes #4014. Relates to
owncloud/core#31259.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants