Linux --- 快速复制大量小文件
有时需要进行数据的备份和恢复, 若存在大量的小文件速度会很慢,可使用如下命令
有时需要进行数据的备份和恢复, 若存在大量的小文件速度会很慢,可使用如下命令
cd source/; tar cf - . | (cd target/; tar xvf -)cd source/; tar cf - . | (cd target/; tar xvf -)
# kubectl查询每个pod占用磁盘空间
kubectl get --raw /api/v1/nodes/10.200.200.1/proxy/stats/summary | jq '.pods[] | "PodName: \(.podRef.name)", "usedBytes: \(.containers[].rootfs.usedBytes)", "======================================================"'
# Docker 查看容器磁盘占用
# 节点上查看磁盘使用情况,并安装从大到小排序,可以看到各个容器的占用磁盘空间。
docker ps -a --format "table {{.Size}}\t{{.Names}}" | sort -hr
# 查看磁盘总体使用情况
docker system dfgit filter-branch --index-filter 'git rm --cached --ignore-unmatch yarr/data/yarr.db' --prune-empty -- --allhtml {
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
-webkit-filter: grayscale(1);
}curl -sIL 分享链接 | rg -A 8 -m 1 "HTTP/2 302" | rg "location: " | cut -d ' ' -f 2 | cut -d '?' -f 1 | pbcopy