20 lines
487 B
JavaScript
20 lines
487 B
JavaScript
/*
|
|
|
|
Copyright (c) 2020, 2023, The Unified Company.
|
|
|
|
This code is part of Unify.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the ESA Software Community License - Strong Copyleft,
|
|
|
|
https://unifyjs.org
|
|
|
|
*/
|
|
|
|
import fse from "fs-extra";
|
|
|
|
|
|
fse.copySync("./framework/db/index.sqlite", "./framework/db/backup"+Math.floor(Math.random() * 100)+".sqlite");
|
|
|
|
fse.copySync("./framework/db/uploaded_db.sqlite", "./framework/db/index.sqlite");
|