Nextbackup location

Hi

where can i find the location of backups for the app nextcloud backup ?

im running system from a debian (raspbian)

thx

public function createDBBackup()

    {
        $timestamp = time();

https:// github.com/pbek/nextbackup/blob/develop/service/backupservice.php

try
{
    $backupDir = $this->configService->getBackupBaseDirectory(). "/$timestamp";

public function getBackupBaseDirectory() {
        $backupDir = $this->getDataDir() . '/ownbackup';

https:// github.com/pbek/nextbackup/blob/4a0704cb26d334e32f734a49538889621405bc60/service/configservice.php

Look in /var/www/nextcloud/data/ownbackup/$timestamp
Perhaps wrong source. Search for data/…/$timestamp .
$timestamp format is time() from PHP.

https://www.php.net/manual/de/function.time.php

Your app? https://apps.nextcloud.com/apps/nextbackup
GitHub? https://github.com/pbek/nextbackup

It is only a dabase backup:
NextBackup (formerly OwnBackup) is the simple database backup solution for your ownCloud 8.1+ and Nextcloud installation.

… you must backup your data-dir separately perhaps with rsync. The data-dir rsync-backup includes the dumped database with nextbackup.

Thats what i wanted to do but impossible to locate those backups

im going to search with a grep inside debian, because i dont master php search

I found it with a simple grep command

it is stored in the data directory where you can find users profiles too

In my case, i changed the data directory to a SATA HDD

path-to-your-data/data/ownbackup

1 Like