icewind1991 / root_cache_cleaner

Removes duplicate filecache entry from the root filecache.
5 stars 0 forks source link

[Question] How to send confirmation to "occ root_cache_cleaner:clean" for a docker-composed Nextcloud AIO server? #1

Open doommood opened 1 year ago

doommood commented 1 year ago

I use docker-compose to run Nextcloud All-in-One: nextcloudapp, nextclouddb and onlyoffice containers.

When I run the command:

docker exec --user www-data nextcloudapp php occ root_cache_cleaner:clean

I receive the output: "While the cleanup process should be safe there is still a risk involved in bulk deleting filecache entries like this. It is strongly recommended to ensure that a proper database backup is in place before running this process. Note that this process involves some fairly heavy database queries and can take a long time on large instances. Continue? [y/N] " after which the CLI is closed.

How to send confirmation "y" to "occ root_cache_cleaner:clean"?

Dexus commented 4 months ago

docker exec -ti --user www-data- nextcloudapp php occ root_cache_cleaner:clean

-t allocates a ttl -i starts as interactive session

good luck