From d307bc0556528b44171becf20998e852e96d1216 Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Sun, 16 May 2021 19:54:18 +0200 Subject: [PATCH] bw/htz-cloud.miniserver enable backups --- data/backup/keys/htz-cloud.miniserver.key.vault | 1 + data/backup/keys/htz-cloud.miniserver.pub | 1 + nodes/htz-cloud/miniserver.py | 11 ++++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 data/backup/keys/htz-cloud.miniserver.key.vault create mode 100644 data/backup/keys/htz-cloud.miniserver.pub diff --git a/data/backup/keys/htz-cloud.miniserver.key.vault b/data/backup/keys/htz-cloud.miniserver.key.vault new file mode 100644 index 0000000..a7468c7 --- /dev/null +++ b/data/backup/keys/htz-cloud.miniserver.key.vault @@ -0,0 +1 @@ +encrypt$gAAAAABgoVlzLgIb2UCbDSztRNaLNDY5AaF3BlosclzZvKQPDvgRLobDusDPGCuxreeZ19PB1vOjyT0unuALoM-3qufCutiv9QxmeDwzKy6D9RFn_PVfL2WhNGOG_oO8W_2Itx8Nza-8ta-eQfnR-1FJnti3gXDh60usWwE9rI3C8BMBDiaGBWNqhi_P2r7YoWBsJ06jE-qr7J51ddO1W2VaP_95ebZu9GmAljQkzUy4EdgH5f0xQBgjHFzA5H_OAUMZ-ey3MFXPAXMSFKomIBy4eSks0ghHS5KcJYD3UTjXEdag022CXfNqQDZL99yZm7re4tvQ1nsaiD8rRPciNZHxb2VYEj-OPHEjJnJ4dv_uqba8IPd8Stc5n3A-vklMsZwQWwaAvu12T6m61HbJeCc7WPst8UTJbJJPMhX1bhnvo8qtmB0kRdQ7GhVno0OZRFbHAEgXj8ifXdEEwWuGmw_191LA_UGKjcUau27CxyfY9CnJoah0DSWoZ8_M6haQB4QisiPdDXUilb1Jva3b13U7wubMCSqdZCc5ySnI5womn-GuXWCOQlfwR3sKop5NPs8oeOcN2k_XZUvHm1udcntEMPqEbEBtlP21nUkxZ2nUl4KCpbQQ6iM= \ No newline at end of file diff --git a/data/backup/keys/htz-cloud.miniserver.pub b/data/backup/keys/htz-cloud.miniserver.pub new file mode 100644 index 0000000..3e38d51 --- /dev/null +++ b/data/backup/keys/htz-cloud.miniserver.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBkINf6i/nlscFFcvyZUrvYlpKZRMo6Si1LbNlClWksA sophie@ejgwthink diff --git a/nodes/htz-cloud/miniserver.py b/nodes/htz-cloud/miniserver.py index a895c5a..8db9390 100644 --- a/nodes/htz-cloud/miniserver.py +++ b/nodes/htz-cloud/miniserver.py @@ -44,8 +44,17 @@ nodes['htz-cloud.miniserver'] = { }, }, }, + 'backup-client': { + 'pre-hooks': { + 'sophie-weechat': \ + 'echo \'core.weechat */layout store\' >> /home/sophie/.weechat/weechat_fifo\n' \ + 'echo \'core.weechat */save\' >> /home/sophie/.weechat/weechat_fifo\n', + }, + }, 'backups': { - 'exclude_from_backups': True, + 'paths': { + '/home/sophie/.weechat', + }, }, 'element-web': { 'url': 'chat.sophies-kitchen.eu',