servers:radicale
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:radicale [2017/07/08 14:44] – [Firewall] Sean Rhone | servers:radicale [2017/08/19 00:56] (current) – [Timer] Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * Radicale ((http:// | ||
+ | * Provides CardDav and CalDav services | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * [[distros: | ||
+ | |||
+ | ====== Dependencies ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt install radicale python-pampy && sync | ||
+ | |||
+ | ====== Firewall ====== | ||
+ | |||
+ | * 5232/tcp is Radicale | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [radicale-custom] | ||
+ | title=radicale-custom | ||
+ | description=Radicale | ||
+ | ports=5232/ | ||
+ | |||
+ | ====== Config ====== | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | [server] | ||
+ | hosts = 0.0.0.0: | ||
+ | | ||
+ | [auth] | ||
+ | type = PAM | ||
+ | |||
+ | ====== Service ====== | ||
+ | |||
+ | ====== Fix ====== | ||
+ | |||
+ | * TODO: Figure out why this is set by-default... ((this causes the systemd service not to start)) | ||
+ | |||
+ | sudo sed -i ' | ||
+ | |||
+ | ====== Service ====== | ||
+ | |||
+ | |||
+ | **** | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ====== Evolution ====== | ||
+ | |||
+ | ===== Calendar, Tasks, Memos ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== Contacts ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ====== DAVdroid ====== | ||
+ | |||
+ | ===== Base URL ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | http:// | ||
+ | |||
+ | |||
+ | ====== Services ====== | ||
+ | |||
+ | ===== Backup ===== | ||
+ | |||
+ | * This backs up an archive to the local disk and [[distros: | ||
+ | |||
+ | ==== Service ==== | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | WorkingDirectory=/ | ||
+ | ExecStart='/ | ||
+ | ExecStartPost='/ | ||
+ | |||
+ | ==== Timer ==== | ||
+ | |||
+ | * TODO: Set a dedicated time for this as 1:05 is used already | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Radicale Files Backup | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=*-*-* 01:05:00 | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ====== Backup ====== | ||
+ | |||
+ | ===== Server ===== | ||
+ | |||
+ | ==== Backup Collections ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd '/ | ||
+ | |||
+ | ===== Client ===== | ||
+ | |||
+ | ==== Transfer Archive To Client ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | scp espionage724@192.168.1.153: | ||
+ | |||
+ | ====== Restore ====== | ||
+ | |||
+ | ===== Client ===== | ||
+ | |||
+ | ==== Transfer Archive To Server ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | scp ~/' | ||
+ | |||
+ | ==== Remove Archive ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | rm ~/' | ||
+ | |||
+ | ===== Server ===== | ||
+ | |||
+ | ==== Remove Previous Folder ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo rm -Rf '/ | ||
+ | |||
+ | ==== Restore Folder ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd '/ | ||
+ | |||
+ | ==== Start Service ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo systemctl start ' | ||
+ | |||
+ | ==== Remove Archive ==== | ||
+ | |||
+ | * Verify that CalDAV and CardDAV clients can successfully read and sync before running | ||
+ | |||
+ | sudo rm ~/' |