sudo apt install radicale python-pampy && sync
sudo -e '/etc/ufw/applications.d/custom' && sudo ufw allow 'radicale-custom'
[radicale-custom] title=radicale-custom description=Radicale ports=5232/tcp
sudo mkdir -p '/var/lib/radicale/.config/radicale' && sudo chown -R 'radicale':'radicale' '/var/lib/radicale' && sudo -u 'radicale' -e '/var/lib/radicale/.config/radicale/config'
[server] hosts = 0.0.0.0:5232, [::]:5232 [auth] type = PAM
sudo sed -i 's/'#ENABLE_RADICALE'/'ENABLE_RADICALE'/g' '/etc/default/radicale'
sudo systemctl enable 'radicale' --now
http://192.168.1.153:5232/espionage724/calendar.ics/
http://192.168.1.153:5232/espionage724/contacts.vcf/
http://192.168.1.153:5232/espionage724/
mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/radicale-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/radicale-fb.service'
[Service] Type=oneshot WorkingDirectory=/var/lib ExecStart='/bin/bash' -c '"/bin/tar" -cvzf "/home/CHANGEME/backups/radicale-files-auto-"$$(date +%%Y-%%m-%%d)".tar.gz" "radicale"' ExecStartPost='/bin/sync'
sudo -e '/etc/systemd/system/radicale-fb.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'radicale-fb.timer' --now && sudo systemctl start 'radicale-fb' && sudo systemctl status 'radicale-fb' -l
[Unit] Description=Radicale Files Backup [Timer] OnCalendar=*-*-* 01:05:00 Persistent=true [Install] WantedBy=timers.target
cd '/var/lib' && sudo tar -cvzf ~/'radicale-files-manual-'$(date +%Y-%m-%d)'.tar.gz' 'radicale' && cd ~ && sync
scp espionage724@192.168.1.153:~/'radicale-files-'*'.tar.gz' ~/'Downloads' && sync
scp ~/'Downloads/radicale-files-'*'.tar.gz' espionage724@192.168.1.153:~
rm ~/'Downloads/radicale-files-'*'.tar.gz' && sync
sudo rm -Rf '/var/lib/radicale'
cd '/var/lib' && sudo tar -xvzf ~/'radicale-files-'*'.tar.gz' 'radicale' && sudo chown -R 'radicale':'radicale' '/var/lib/radicale' && cd ~ && sync
sudo systemctl start 'radicale'
sudo rm ~/'radicale-files-'*'.tar.gz'