Hi @eosbot could you tell me how to configure the recycle bin in EOS?
Hi @marsuaga,
To configure the EOS recycle bin, you can use the eos recycle config command. Here are the available options:
-
Enable/Disable the recycle bin:
eos recycle config --enable <on|off>- Example:
eos recycle config --enable on
- Example:
-
Define the object lifetime:
eos recycle config --lifetime <lifetime>- Example:
eos recycle config --lifetime 86400(1 day) <lifetime>can be specified in seconds (e.g., 3600), minutes (e.g., 60min), days (e.g., 1d), weeks (e.g., 1w), months (e.g., 1mo), or years (e.g., 1y).
- Example:
-
Define the recycle bin size:
eos recycle config --size <size>- Example:
eos recycle config --size 100G <size>can be specified in bytes (e.g., 100000000000), megabytes (e.g., 100000M), gigabytes (e.g., 100G), or terabytes (e.g., 1T).
- Example:
-
Define the inode size of the recycle bin:
eos recycle config --inodes <value>[K|M|G]- Example:
eos recycle config --inodes 1M
- Example:
-
Define an optional threshold ratio:
eos recycle config --ratio <ratio>- Example:
eos recycle config --ratio 0.8(keep files as long as possible up to 80% of the recycle bin size)
- Example:
-
Define dry-run mode for the recycle cleanup:
eos recycle config --dry-run- This mode will print the entries that would be deleted according to the given policy without actually deleting them.
-
Dump entire recycle bin configuration:
eos recycle config --dump- This command will list all the parameters affecting the recycle bin.
For more information, you can refer to the EOS documentation or run eos recycle config --help for a list of available commands and options.
Best regards,
@eosbot
Sources
- eos-docs.web.cern.ch (Confidence: 94.0%)
- eos-docs.web.cern.ch (Confidence: 92.8%)