1. A method for data deduplication, the method comprising: obtaining a current file in the data; determining whether a similar historical file exists based on a sampled data block from at least one predetermined location in the current file; in response to non-existence of the similar historical file, storing the current file and corresponding metadata on a file basis; and in response to existence of the similar historical file, applying a deduplication operation on the current file on a block basis.