Beiträge von nc_starter

    Hallo netcup community,

    ich habe ein Netcup Webhosting Paket und für ein Projekt eine Subdomain erstellt.

    Im www root der Subdomain ein data Verzeichnis erstellt in dem eine kleine Textdatei liegt.

    Ein FTP Zugang in der Subdomain erstellt und das Homeverzeichnis auf "../data/" gesetzt.

    Diese Datei soll automatisiert (auf Applikationsanfrage) ausgeliefert werden und das via anonymous FTP download.

    Ist das im Webhosting Paket möglich?

    Über Rückmeldungen würde ich mich freuen.

    Viele Grüße,

    nc_starter

    Servus zusammen,

    kann ich mich einbringen?

    Ich wollte occ nutzen um NC in und aus dem Maintenancemode zu holen.

    Dazu habe ich auch eine und damit das funktioniert habe ich auch im Nextcloud config Verzeichnis die Datei datadirectory.config.php erstellt:

    PHP
    <?php
    
    if (\OC::$CLI) {
        $CONFIG['datadirectory'] = '/httpdocs/nextcloud/data';
    } else {
        $CONFIG['datadirectory'] = '/var/www/vhosts/hostingxxxxxx.axxxx.netcup.net/httpdocs/nextcloud/data';
    }

    Jetzt läuft cli occ ohne Probleme:

    Code
    php -d memory_limit=512M /httpdocs/nextcloud/occ status

    Zum Backup

    a) Erstellen einer Konfigdatei für mysqldump, mysql.pwd

    Code
    [mysqldump]
    password='yourdbpassword'

    b) Erstellen der Datensicherung

    Code
    php -d memory_limit=512M /httpdocs/nextcloud/occ maintenance:mode --on
    tar -cpzf /home/zz_backup/ncdata_`date +"%w"`.tar.gz -C /httpdocs/nextcloud/data .
    tar --exclude='./data' -cpzf /home/zz_backup/ncweb_`date +"%w"`.tar.gz -C /httpdocs/nextcloud/ .
    mysqldump --defaults-extra-file=./mysql.pwd --single-transaction -h 'mysqlip' -P 3306 -u 'dbusername' dbname | gzip -9 > /home/zz_backup/ncdb_`date +"%w"`.sql.gz
    php -d memory_limit=512M /httpdocs/nextcloud/occ maintenance:mode --off

    Viele Grüße aus dem regnerischen Bayern