Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at

hpr3232 :: Nextcloud

Nextcloud is easy. You should try it.

<< First, < Previous, , Latest >>

Hosted by Klaatu on 2020-12-22 is flagged as Clean and is released under a CC-BY-SA license.
cloud, nextcloud, owncloud, server. 3.
The show is available on the Internet Archive at:

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:21:19

Privacy and Security.

In this open series, you can contribute shows that are on the topic of Privacy and Security

I've been running NextCloud since it was OwnCloud. In this episode, I encourage other people to install and run NextCloud. It's a great way to get out of the Google ecosystem, and it doesn't require much to set up or maintain.

Here's the script I use to update one of the Nextcloud instances I maintain, running on a dirt-cheap VPS slice from Blue Host er something:

# GNU All-Permissive License
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.

if [ "${1}" == "--help" ]; then
    echo "usage:"
    echo "$0 https://path-to-nextcloud.bz2"
    echo "WARNING: You MUST put your Nextcloud instance into maintenance mode first"

set -e

# get rid of the old Nextcloud tarball from the last time you upgraded
trash nextcloud*bz2 || true

# get rid of old backups as long as they are empty of actual data
[[ -e cloud/data ]] && trash cloud-deleteme

#download the source tarball
wget "${1}"

#rename old cloud
mv nextcloud cloud-deleteme

# untar source
# grab your data from old cloud
tar xvf nextcloud*bz2 && mv cloud-deleteme/data/ nextcloud/

# copy your config
cp cloud-deleteme/config/config.php nextcloud/config/

# enter the cloud
pushd nextcloud

# perform upgrade
php ./occ upgrade

# leave the cloud

Don't use my upgrade script blindly, and please do test first. It works for my setup, but has been tested ONLY on my setup. Also, it doesn't put your Nextcloud instance into maintenance mode (probably because I wrote it before I knew Awk...), so you must do that manually.

Happy hacking!


Subscribe to the comments RSS feed.

Comment #1 posted on 2020-12-22 04:58:19 by the pro

this is a nice group

this is very nice

Comment #2 posted on 2020-12-22 11:34:37 by Ken Fallon

Upgrade via the UI ?

Hi Klaatu,

I have used the UI for upgrading

> Profile Icon > Settings > Administration > Overview Upgrade

Is there any reason not do do that ?

Comment #3 posted on 2020-12-23 14:43:26 by Kevin O'Brien

Good inspiration!

Thank you for this information, it is getting me thinking. I have an account on a Web hosting service, and it sounds like maybe I could install an instance there. But I wonder if I should create separate domain for that. My sites run WordPress and of course have MySQL databases for that, but can you have both a WordPress site and a NextCloud instance on a single database?

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?