...Continued from PieFed Instructions...
- OPTIONAL: Environment Variables
- Some functions such as email or captcha's won't work unless you add the necessary variables into the
~/pyfedi/.env.docker
file. Look at~/pyfedi/env.sample
and add the other variables to~/pyfedi/.env.docker
according to your needs.
- View the sample file
nano ~/pyfedi/env.sample
- Edit & Save .env.docker file
nano ~/pyfedi/.env.docker
- Restart PieFed Docker container
docker compose down && docker compose up -d
- Some functions such as email or captcha's won't work unless you add the necessary variables into the
Updating PieFed Docker Container
docker compose down
git pull
docker compose up --build
docker compose down && docker compose up -d
I ended up using rsync to do my backups. I have a laptop, an Android phone with Termux, a HomeAssistant docker image on a Raspberry Pi 4 and a home PieFed instance on a Raspberry Pi 5.
Each RPi board will create a complete backup on it's on storage. I'll then make a copy of each backup to my laptop. And finally another copy from my laptop to an external usb storage device. I also made a specific folder on my Android phone for the purpose of syncing with my laptop.
What I like about rsync is that it can be made to only transfer any changed files and not everything each time.
Since I use docker images on both my RPi boards, I made a script that shuts down all the containers before make a backup copy and finally starting the containers again. I even made a script to do something similar to restore from the saved backup.
Took a lot of trail and error to get them working but I am pretty happy with it. I have the scripts here if anyone is interested. I labelled what I did but didn't really leave comments explaining things. They are pretty simple anyways.
I could have used rsnapshot but learning how to use rsync has been interesting enough to me.