问题描述
如何从s3(minio)中删除超过天数的存储桶?
我认为,我需要首先添加别名: mc别名集minio http:// my-minio:9000 accesskey secretkey 然后,我需要找到旧的水桶。 我试图通过查找和删除找到它们,并且有效:
find /export -not -path "/export/.minio.sys/*" -type d -name "temp-*" -mtime +1 -print | cut -f 2 -d "/" > file
input=./file
while IFS= read -r line
do
mc rb --force minio/"$line"
done < "$input"
但是也许是更简单的方法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)