For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Owncloud > Dealing With Disk Full

Dealing With Disk Full

Created by dave. Last edited by dave, 35 days ago. Viewed 77 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(2019-01-18)

Problem

Disk is full.

Solution

Empty trashbins

# sudo apache php occ trashbin:expire

This deletes files which have been in the trash longer than controlled by config.php. By default it is applied to all users; you can specify individual users on the command line.

Trim File Versions

# sudo apache php occ versions:expire
This deletes file versions which have been around longer than controlled by config.php. By default it is applied to all users; you can specify individual users on the command line.

Nuclear option

# sudo apache php occ trashbin:cleanup

This deletes all files that are in the trash regardless of how long they have been there. By default it is applied to all users; you can specify individual users on the command line.

Similarly:

# sudo apache php occ versions:cleanup

Same as above, except removes file versions instead of emptying trash.

Commentary

Doing the :expire commands should never be necessary, it should happen periodically automatically.

When I upgraded a Owncloud 9.1.5 (EPEL) to Owncloud 10.0 (Owncloud) something started chewing up disk space something fierce -- like 1TB in 20 days fierce. Turns out that the cron job from the EPEL version was removed and I never added the one for the new version.

>>More information

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt