Hacker Public Radio

HPR3232: Nextcloud


Listen Later

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:
#/test/before/using/bash
# 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 http://path-to-nextcloud.bz2"
echo "WARNING: You MUST put your Nextcloud instance into maintenance mode first"
exit
fi
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
popd
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!
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

290 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

372 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

268 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

651 Listeners

Curious Cases by BBC Radio 4

Curious Cases

821 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

423 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,066 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

179 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

42 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,799 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

98 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

139 Listeners

What the Hack? by DeleteMe

What the Hack?

229 Listeners