Difference between revisions of "Poddery - Diaspora, Matrix and XMPP"

setup backup server
(setup backup server)
Line 35: Line 35:


[[Category:Services]]
[[Category:Services]]
== Setting up Backup ==
Backup is setup on a Scaleway C1 VPS (4 core ARM processor with 2GB RAM)
Access: backup.poddery.com (212.47.244.122)
# apt-get install lvm2 cryptsetup
Directly creating luks volume on /dev/nbd1 is not working, so we use a logical volume
# pvcreate /dev/nbd1
# vgcreate data /dev/nbd1
# lvcreate -n diaspora -L 46.5G /dev/data
# cryptsetup luksFormat /dev/data/diaspora
# cryptsetup luksOpen /dev/data/diaspora diaspora
and update /etc/crypttab
# <target name> <source device>        <key file>      <options>
diaspora /dev/data/diaspora none luks
# mkfs.ext4 /dev/mapper/diaspora
# mkdir /var/lib/diaspora
and update /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/mapper/diaspora /var/lib/diaspora ext4 defaults 0 2
# mount -a
# ln -s /var/lib/diaspora/mysql /var/lib/mysql


== Maintenance history ==
== Maintenance history ==