2610c1ad2f
CI / unit (8.2) (push) Has been cancelled
CI / unit (8.3) (push) Has been cancelled
CI / unit (8.4) (push) Has been cancelled
CI / integration (mariadb, 32) (push) Has been cancelled
CI / integration (mariadb, 33) (push) Has been cancelled
CI / integration (mariadb, 34) (push) Has been cancelled
CI / integration (mariadb, 35) (push) Has been cancelled
CI / integration (pgsql, 32) (push) Has been cancelled
CI / integration (pgsql, 33) (push) Has been cancelled
CI / integration (pgsql, 34) (push) Has been cancelled
CI / integration (pgsql, 35) (push) Has been cancelled
CI / integration (sqlite, 32) (push) Has been cancelled
CI / integration (sqlite, 33) (push) Has been cancelled
CI / integration (sqlite, 34) (push) Has been cancelled
CI / integration (sqlite, 35) (push) Has been cancelled
A backup step killed by a time limit, OOM or kill -9 kept Nextcloud's lock on its location for up to an hour, blocking every new start and the run itself. Locations and runs are now guarded by leases in ngb_leases with an expiry: a backup step holds them for its duration plus two minutes, restores refresh theirs every minute, prune holds 30 minutes, untrash 5. Nextcloud's lock is only used for the milliseconds in which a lease is checked and written. Also: starting a backup while one is already running simply continues it (no exclusive lease needed), and running to completion waits instead of spinning while a crashed step's lease has not expired. Tested on NC34: a backup killed four times at random moments resumes on its own after the lease expires (about two minutes), and restores bit-identically.
52 lines
2.4 KiB
XML
52 lines
2.4 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.17</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>
|
|
<command>OCA\NgBackup\Command\Browse</command>
|
|
<command>OCA\NgBackup\Command\Restore</command>
|
|
<command>OCA\NgBackup\Command\Prune</command>
|
|
<command>OCA\NgBackup\Command\Retention</command>
|
|
<command>OCA\NgBackup\Command\TargetAppendOnly</command>
|
|
<command>OCA\NgBackup\Command\TargetTrustCurrent</command>
|
|
<command>OCA\NgBackup\Command\TargetLimit</command>
|
|
<command>OCA\NgBackup\Command\Trash</command>
|
|
<command>OCA\NgBackup\Command\TrashRestore</command>
|
|
<command>OCA\NgBackup\Command\KeySlots</command>
|
|
<command>OCA\NgBackup\Command\KeySlotAdd</command>
|
|
<command>OCA\NgBackup\Command\KeySlotReplace</command>
|
|
<command>OCA\NgBackup\Command\KeySlotRemove</command>
|
|
</commands>
|
|
<settings>
|
|
<admin>OCA\NgBackup\Settings\Admin</admin>
|
|
<admin-section>OCA\NgBackup\Settings\AdminSection</admin-section>
|
|
</settings>
|
|
</info>
|