My Newest Reason to Learn Docker

Skip to first unread message

Roger M. Jenson

Mar 30, 2024, 8:07:16 AMMar 30
to Milwaukee Linux Users Group
My current Nextcloud server running in a virtual private server (VPS) in
a Linode data center in Toronto, Ontario, Canada needs to be upgraded.
The Linode data center in Toronto, Ontario, Canada was the
geographically closest Linode data center to me at the time I installed
the Nextcloud server. Now that Akamai has bought Linode and added data
centers I reviewed my options and decided to install Nextcloud from
their Marketplace in the Chicago region data center to optimize the
performance of the new Nextcloud server.

A Linode/Akamai Marketplace application is a "One Click" scripted
installation that you fill out a configuration form and  click the
"Create Linode" button at the bottom of the form. A few minutes later
the Linode/Akamai Marketplace Nextcloud One Click installation gives you
a shiny new Nextcloud All In One (NextcloudAIO) server with all the
bells and whistles.

By the way NextcloudAIO uses Docker to provide the bells and whistles.
For more information about NextcloudAIO see the following URL.

Having Fun,
Roger M. Jenson

Roger M. Jenson

Mar 31, 2024, 9:07:31 AMMar 31

The NextcloudAIO install went well and after the new DNS record propagated I can access my new Nextcloud server at

The next thing I plan to do is change the NextcloudAIO data directory to a block storage volume so I need to refresh my Docker command line skills.

The following command line displays the current data directory.

sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:get datadirectory

The data directory is currently /mnt/ncdata. I want to change it to /mnt/mmndi-block-storage-Chicago.

Once I have my shiny new NextcloudAIO configured and tested I will start user and data migration from my Nextcloud server in Toronto.

Having Fun.
Roger M. Jenson

Roger M. Jenson

Mar 31, 2024, 8:43:45 PMMar 31

Changing the data directory has proven to be a challenge. I think I broke my last NextcloudAIO installation trying to change the data directory. After deleting the broken NextcloudAIO instance and installing a new instance it was time to start over.

After a bit of research it looked liked I had three paths.

  • Mount the Block Storage volume to the directory that NextcloudAIO was pointed to for the data directory.
  • Change docker environment variable to point to the data directory to the Block Storage volume.
  • Change the Nextcloud config file variable to point the the data directory to the Block Storage volume.

After failing to produce the desired results with the first two methods I was successful with the third method.


rsync -av the directory and contents created by the NextcloudAIO inside of the Block Storage volume.


Edit the NextcloudAIO config file variable to point to the directory in the Block Storage volume.


Login to admin account after ...

Stopping and restarting NextcloudAIO docker containers.

Rebooting the server instance.

Create a new user.

Login as the new user.

Confirm the the new user account directories and files are created in the Block Storage volume.

Now I have to work on user account and data migration from the previous Nextcloud server instance.

Having Fun,
Roger M. Jenson

This forum online:!forum/MilwaukeeLUG
You received this message because you are subscribed to the Google Groups "Milwaukee Linux User's Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Roger M. Jenson

Apr 2, 2024, 8:44:37 PMApr 2

The user account data migration tool in Nextcloud exports the following.

User information and settings


Deleted files

Profile information



I have to learn how to migrate the contents of the following applications.






The user migration for my user account took a while to generate a 3.7 GB export file that I downloaded to my desktop computer. When I was ready to import the user profile I was reminded that my upload speed was much less than download speed when the upload was estimated to take 8 hours. The solution was to rsync the user export file from the Toronto data center to the Chicago data center using the big pipes between them. The user file import was a breeze. Now all I have to do is work on the  second list of application files.

Having Fun,
Roger M. Jenson

Reply all
Reply to author
0 new messages