Bertram-Ubuntu
Deprecated
A step-by-step guide on how to setup Bertram on Ubuntu Server with Ansible.
Table of Contents
Install Ubuntu Server
Install Ubuntu Server with a non-root user. If not done already: Create an SSH key. Copy key to the mashine.
Create SSH key (example):
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/bertram-ubuntu-test -C <email@address.com>
Copy SSH key (example):
ssh-copy-id -i ~/.ssh/bertram-ubuntu-test -p 22 -o IdentitiesOnly=yes <username>@<server address>
Misc
0 */6 * * * /usr/bin/docker exec nextcloud occ app:update --all >/dev/null 2>&1
For copying data as backup:
rsync -Aavx /path/to/src /path/to/dest/backup_`date +"%Y%m%d"`/
For dumping the DB:
docker exec mariadb-nextcloud mysqldump --single-transaction --default-character-set=utf8mb4 -h localhost -u ncbertram -p'password' nextcloud > /path/to/dest/nextcloud-sqlbkp_`date +"%Y%m%d_%H%M"`.bak