7.) Backup
- I use the backup from the nexcloudpi panel (https://ip-to-your-pi:4443) to make a full backup of my nextcloud, because it is so easy and it is even more easy when it must be restored.
- for my docker stuff i use a little backup script
#!/bin/bash
#here are the variables you have to adjust----
dockerdata=/media/dockerdata #the folder where all my dockerfiles are stored in
backupdir=/media/backup #place where the backups are placed in
pi=/home/pi/ #home of pi , all my folder with the docker-compose.yml files are in here
#---------------------------------------
#create backup folder structure if not already done
mkdir $backupdir/dockerdata
mkdir $backupdir/home
mkdir $backupdir/home/pi
echo backing up Bitwaden-database...
sudo rsync --progress -h -a --delete $bitwarden $backupdir/bw-data
echo backing up Dockerdata...
sudo rsync --progress -h -a --delete $dockerdata $backupdir
echo backing up home directory...
sudo rsync --progress -h -a --delete $pi $backupdir/home/pi
echo backup complete