Deprecated: Use Nextcloud/all-in-one instead. Nextcloudpi does not get updates anymore.
Aims to provide everything needed to easily spin up a nextcloud instance in minutes using nextcloudpi docker
Linux PC with Ubuntu/Debian/Raspian
Works great on Raspberry Pi 4
See Setting up your Raspberry Pi
See Geek's Circuit: Install Docker on Raspberry Pi
See The Pi Hut: Mount external drive on Raspberry Pi
You can base your fstab on example_fstab in this repo
sudo apt update && sudo apt install borgbackup
As root
-
apt install sshfs
-
mkdir /mnt/your_mountpoint
-
nano /etc/fstab
and addyour_user@your_other_server:~/ /mnt/your_mountpoint fuse.sshfs noauto,x-systemd.automount,_netdev,reconnect,identityfile=/home/sammy/.ssh/id_rsa,allow_other,default_permissions 0 0
-
ssh-copy-id your_user@your_other_server
-
Fill in your infos in the .env file
-
Initialize borg repository:
borg init -e repokey-blake2 /mnt/your_mountpoint
- Set and note password
- Export and save key:
borg key export /mnt/yourmountpoint/data exported-key.txt
-
Fill in your setup info into the borg_backup_settings.bash
-
Make borg_backup_settings.bash owned by root, so no other user can read the password:
sudo chown root:root borg_backup_settings.bash
sudo chmod og-rwx borg_backup_settings.bash
-
Add entries to root's crontab based on example_crontab:
sudo crontab -e
docker pull ownyourbits/nextcloudpi:latest
docker-compose up -d