Skip to content

Commit 8e9a9cc

Browse files
committed
core: fix incremental backup
1 parent 4f8c9e7 commit 8e9a9cc

File tree

1 file changed

+1
-1
lines changed
  • packages/hydrooj/src/commands

1 file changed

+1
-1
lines changed

packages/hydrooj/src/commands/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function register(cli: CAC) {
7171
if (cwd === '/data') return;
7272
if (keepSource) fs.copySync(path.join(cwd, item), path.join('/data', item), { overwrite: true });
7373
else fs.moveSync(path.join(cwd, item), path.join('/data', item), { overwrite: true });
74-
filesToRemove.push(path.join(cwd, item));
74+
filesToRemove.push(path.join('/data', item));
7575
}
7676
: (cwd: string, item: string, keepSource = true) => {
7777
exec('zip', ['-gr', target, item], { cwd, stdio: 'inherit' });

0 commit comments

Comments
 (0)