群晖文件去重复文件duplicate
date
Apr 4, 2022
slug
synology-file-deduplicates
status
Published
summary
小技巧
tags
tip
nas
type
Post
URL
Problem & Summary运行Storage Analyzer获取Potential Duplicate File ReportExcel当中获得Duplicate Rows - 在F列用Column A来做判断;然后将C列复制到一个duplicates.txt文件当中登陆群晖ssh后台,运行
Problem & Summary
运行Storage Analyzer获取Potential Duplicate File Report
Excel当中获得Duplicate Rows - 在F列用Column A来做判断;然后将C列复制到一个duplicates.txt文件当中
= IF(A3=A2,1,"")
登陆群晖ssh后台,运行
# 每行头尾加上 "
# 一行行删除
cat /volume2/tmpr/duplicate_files.txt | sed 's/.*/"&"/' | xargs -I {} rm -f {}