群晖文件去重复文件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 Report

notion image

Excel当中获得Duplicate Rows - 在F列用Column A来做判断;然后将C列复制到一个duplicates.txt文件当中

= IF(A3=A2,1,"")
notion image
 

登陆群晖ssh后台,运行

# 每行头尾加上 "
# 一行行删除
cat /volume2/tmpr/duplicate_files.txt |  sed 's/.*/"&"/' |  xargs -I {} rm -f {}
 

© Ying Bun 2021 - 2024