[英]Delete old files on MEGA using megatools
How I can delete old ( for example older than 7 days ) files on MEGA using megatools? 如何使用megatools删除MEGA上的旧文件(例如7天以上)文件?
Thank you! 谢谢!
This how I solve this problem in ubuntu. 这是我如何在ubuntu中解决这个问题。
MOUNTPOINT = /mnt/path/your/mounting/dir MEGA_REMOTE_DIR = /Root/path/remote/dir/* MOUNTPOINT = / mnt / path / your / mounting / dir MEGA_REMOTE_DIR = / Root / path / remote / dir / *
apt install megatools
megafs /mnt/path/your/mounting/dir
find /mnt/path/your/mounting/dir/Root/path/mega/remote/dir/* -mtime +7 -exec rm {} \;
umount /mnt/path/your/mounting/dir
Maybe is posible other solutions using megals --long. 也许是使用兆位的其他解决方案 - 长。 Get the +7 days old and remove with megarm. 获得+7天的年龄,并用megarm删除。
I hope this can help you. 我希望这可以帮到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.