Files
duplicati/Duplicati/Library/Main/Database/Local/Database schema/3. Add grace delete period.sql
T
Kenneth Skovhede 62ea2d23f5 Added a sync command to the Controller and CLI.
This refactors a part of the database and adds a new "sync" command that reuses a lot of the backup logic to take a set of sources and apply them to a backend.

Unlike the backup process, the sync copies files verbatim without any encryption.
2026-06-25 15:49:00 +02:00

19 lines
556 B
SQL

CREATE TABLE "RemoteVolume_Temp" (
"ID" INTEGER PRIMARY KEY,
"OperationID" INTEGER NOT NULL,
"Name" TEXT NOT NULL,
"Type" TEXT NOT NULL,
"Size" INTEGER NULL,
"Hash" TEXT NULL,
"State" TEXT NOT NULL,
"VerificationCount" INTEGER NOT NULL,
"DeleteGraceTime" INTEGER NOT NULL
);
INSERT INTO "RemoteVolume_Temp" SELECT "ID", "OperationID", "Name", "Type", "Size", "Hash", "State", "VerificationCount", 0 FROM "RemoteVolume";
DROP TABLE "RemoteVolume";
ALTER TABLE "RemoteVolume_Temp" RENAME TO "RemoteVolume";
UPDATE "Version" SET "Version" = 3;