![]() Please note that '.*\.bak' and '.*\.avi' are regular expressions and not glob patterns. There is no restriction on how old trashed files can get. If we need to remove files, make sure we remove *.bak files first, then all *.avi files and after that the oldest to the newest. Purge files from trash till there is at least 2GB of space on the trash filesystem. There is no restriction on how old trashed files are.Īutotrash -min-free 2048 -D '.*\\.bak' -D '.*\\.avi' Purge files from trash, oldest first, till there is at least 2GB of space on the trash filesystem. If so, only trash files that are older than 30 days. Only purge files from the trash if there is less than 1GB of space left on the trash filesystem. Purge any file that has been in the trash for more then 30 days. Show the number, and total size of files involved. Only list what would be done, but actually do nothing. These files will be removed as soon as the mentioned file would be removed by autotrash. It is left up to the user to actually do something with this information. This will only happen with a broken Trashcan. trashinfo files that point to a non-existing file. Output information on what is happening and why. Example, delete any *.avi files first, then by age: -delete-first '.*\.avi' -v -verbose If this option is used multiple times, the files matching the first regular expression are deleted first, then the second etc. REGEX must be a valid regular expression. Purge any file which matches REGEX first, regardless of it's time-stamp. If unsure, try running autotrash with -dry-run and -verbose to see the effect. If there is less free space, set -delete to the difference between M and the amount of free space. Make sure there is a minimum of M megabytes of free space. If unsure, try running autotrash with both -dry-run and -stat to see the effect. This means that if your oldest trashed item is a 1GB directory, and you request at least 10MB to be removed (M=10), autotrash will remove 1GB. ![]() It uses trash entries, NOT individual files. Purge at least M megabytes, deleting oldest trash addition first. Till that time, autotrash will just exit normally without scanning the Trash directory. As an example, if you set this to 1024, then autotrash will only start to work if there is less than 1GB of free space in the trash. Only purge files if there is less than M megabytes of free space left at the trash location. Use the given path as the location of the Trash directory, instead of the default: ~/.local/share/Trash. Purge files older than DAYS number of days. This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). ![]()
0 Comments
Leave a Reply. |