#!/bin/bash #mysql echo -e "+++ base de dades +++" ./opt/ktdms/mysql/bin/mysqldump -S /opt/ktdms/mysql/bin/mysqldump --port=3306 --socket=/opt/ktdms/mysql/tmp/mysql.sock -u dmsadmin -p dms > /root/backups/db_ktdms.sql #documents echo -e "+++ documents +++" tar -zcvf /root/backups/documents.tar.gz --same-owner --same-permissions /opt/ktdms/Documents > /dev/null #css echo -e "+++ template +++" tar -zcvf /root/backups/resources.tar.gz --same-owner --same-permissions /opt/ktdms/knowledgeTree/resources #plugins echo -e "+++ plugins +++" tar -zcvf /root/backups/plugins.tar.gz --same-owner --same-permissions /opt/ktdms/knowledgeTree/plugins > /dev/null echo -e "+++::: He acabat :::+++"