Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The latest version of the script can be found in the 'Core Scripts' Bitbucket repository: https://stash.kopano.io/projects/KSC/repos/core-tools/browse/kopano-cleanup

 

Code Block
Usage: kopano-cleanup.py [options]

Options:
  -h, --help                         show this help message and exit
  -c FILE, --config=FILE             load settings from FILE
  -s SOCKET, --server-socket=SOCKET  connect to server SOCKET
  -k FILE, --ssl-key=FILE            SSL key file
  -p PASS, --ssl-pass=PASS           SSL key password
  -f NAME, --folder=NAME             run program for specific folder
  -m, --modify                       enable database modification
  --user=USER                        Run script for user
  --wastebasket                      Run cleanup script for the wastebasket
                                     folder
  --junk                             Run cleanup script for the junk folder
  --force                            Force items without date to be removed
  --days=DAYS                        Delete older then x days
  --verbose                          Verbose mode
  --dry-run                          Run script in dry mode
  --progressbar                      Show progressbar

...