EOS Recycle bin configuration

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:

  1. Enable/Disable the recycle bin: eos recycle config --enable <on|off>

    • Example: eos recycle config --enable on
  2. 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).
  3. 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).
  4. Define the inode size of the recycle bin: eos recycle config --inodes <value>[K|M|G]

    • Example: eos recycle config --inodes 1M
  5. 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)
  6. 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.
  7. 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

  1. eos-docs.web.cern.ch (Confidence: 94.0%)
  2. eos-docs.web.cern.ch (Confidence: 92.8%)