Moving large files and folders in OwnCloud

OwnCloud works well for small changes and uploads, but moving or renaming a folder that is a few gigabytes will be troublesome. OwnCloud might think you are actually deleting and then reuploading the files.

You can try WebDAV for reasonably sized files and folders to avoid OwnCloud screwing up the syncing, but you have a better option.

First, disable sync clients to avoid unwanted error notifications.

If you have access to the server, you should ssh into the server. Go into the user’s files directory:

/var/www/owncloud/data/<USER>/files

Use mv commands to move the files around.

To have OwnCloud see your file changes, go to

/var/www/owncloud

and run

sudo -u www-data php occ files:scan <USER>

Let your OwnCloud scan and then be happy.

Sources:

This entry was posted in How-To, Nextcloud/OwnCloud and tagged , , , , , . Bookmark the permalink.

5 Responses to Moving large files and folders in OwnCloud

  1. Worked as a charm, thanks!

  2. flaiming's avatar flaiming says:

    Worked as a charm, thanks!

  3. comprateur's avatar comprateur says:

    Does not work on owncloud9

Leave a comment