mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: auto add date for manual webdav backup
This commit is contained in:
@@ -76,9 +76,9 @@ class Backup {
|
||||
lastModTime = Stores.lastModTime,
|
||||
history = Stores.history.box.toJson();
|
||||
|
||||
static Future<String> backup() async {
|
||||
static Future<String> backup([String? name]) async {
|
||||
final result = _diyEncrypt(json.encode(Backup.loadFromStore()));
|
||||
final path = await Paths.bak;
|
||||
final path = '${await Paths.doc}/${name ?? Paths.bakName}';
|
||||
await File(path).writeAsString(result);
|
||||
return path;
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 700;
|
||||
static const int build = 701;
|
||||
static const String engine = "3.16.5";
|
||||
static const String buildAt = "2024-01-06 11:00:48";
|
||||
static const int modifications = 4;
|
||||
static const String buildAt = "2024-01-06 13:39:30";
|
||||
static const int modifications = 1;
|
||||
static const int script = 34;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user