简体   繁体   English

使用megatools删除MEGA上的旧文件

[英]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中解决这个问题。

  1. I mount file system with the tools megafs. 我使用工具megafs挂载文件系统。
  2. One of the few thing you are allow to do is remove files. 您可以做的少数事情之一就是删除文件。

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.

相关问题 RequestError:-8 尝试将文件备份到具有双重性的 MEGA 云驱动器时 - RequestError: -8 when trying to backup files to MEGA cloud drive with duplicity 通过 google colab 使用 Mega.nz 模块的问题 - problem with using the Mega.nz module via google colab 如何在 C# 中使用 Mega API 上传文件夹或目录? - How Can I Upload Folder or Directory using Mega API in C#? 删除Parse.com中的所有旧对象 - Delete all old objects in Parse.com 如何删除 OneDrive Microsoft 365 中的文件? - How to delete files in OneDrive Microsoft 365? 删除Parse Cloud Code中的其他文件 - Delete other files in Parse Cloud Code jClouds Java应用程序可在Cloud服务之间复制,移动和删除文件 - jClouds Java app to copy, move, delete files between Cloud services 是否可以创建一个可以将电子书文件上传到服务器并可以远程删除下载文件的应用程序? - Is it possible to create an app that can uploaded e-book files to a server and can delete downloaded files remotely? 在命令行中获取共享链接表格Mega.nz - Get shareable link form Mega.nz in command line 如何使用 JavaScript 根据 Cloud Firestore 中的查询删除数组中的 object - How to delete an object in an array based on a query in Cloud Firestore using JavaScript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM