446e317786
BackupService starts a run per location (database dump in one transaction, then config + data directory as a resumable file run), stores the state in ngb_runs after every step, locks a run while a step executes and records the snapshot. Previews, logs, updater backups and per-user cache/uploads are excluded (TreeWalker now supports patterns). BackupJob (every 5 min) starts the daily schedule and steps running runs with a short budget under web cron and a long one under system cron. occ: backup:run, backup:status, backup:list. Tested on NC34/PostgreSQL: first run 128 files / 1 GiB in 64 s (443 MiB uploaded to S3), unchanged second run 2 s / 0 bytes; a background run to SFTP completed through cron.php.
35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
|
<id>ng_backup</id>
|
|
<name>NG Backup</name>
|
|
<summary>Encrypted, incremental backups of your Nextcloud with restore from the web interface</summary>
|
|
<description><![CDATA[Work in progress, not ready for use.]]></description>
|
|
<version>0.0.2</version>
|
|
<licence>agpl</licence>
|
|
<author>Dillard Blom</author>
|
|
<namespace>NgBackup</namespace>
|
|
<category>tools</category>
|
|
<bugs>https://github.com/dillardblom/ng_backup/issues</bugs>
|
|
<dependencies>
|
|
<php min-version="8.1"/>
|
|
<lib>sodium</lib>
|
|
<nextcloud min-version="32" max-version="35"/>
|
|
</dependencies>
|
|
<background-jobs>
|
|
<job>OCA\NgBackup\BackgroundJob\BackupJob</job>
|
|
</background-jobs>
|
|
<commands>
|
|
<command>OCA\NgBackup\Command\KeyInit</command>
|
|
<command>OCA\NgBackup\Command\KeyKit</command>
|
|
<command>OCA\NgBackup\Command\KeyConfirm</command>
|
|
<command>OCA\NgBackup\Command\TargetBackends</command>
|
|
<command>OCA\NgBackup\Command\TargetAdd</command>
|
|
<command>OCA\NgBackup\Command\TargetList</command>
|
|
<command>OCA\NgBackup\Command\TargetRemove</command>
|
|
<command>OCA\NgBackup\Command\RunBackup</command>
|
|
<command>OCA\NgBackup\Command\Status</command>
|
|
<command>OCA\NgBackup\Command\ListSnapshots</command>
|
|
</commands>
|
|
</info>
|