mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 23:57:32 +00:00
rename backup
This commit is contained in:
parent
e902281584
commit
0db7eb6bfe
@ -32,8 +32,8 @@ const yyyymmddHHMMSS = () => {
|
||||
);
|
||||
};
|
||||
|
||||
const getDefaultExportBackupName = () => {
|
||||
return `backup_${yyyymmddHHMMSS()}`;
|
||||
const getDefaultExportName = () => {
|
||||
return `export_${yyyymmddHHMMSS()}`;
|
||||
};
|
||||
|
||||
const logger = console;
|
||||
@ -56,8 +56,7 @@ module.exports = async (filename, opts) => {
|
||||
};
|
||||
const source = createLocalStrapiSourceProvider(sourceOptions);
|
||||
|
||||
const file =
|
||||
_.isString(filename) && filename.length > 0 ? filename : getDefaultExportBackupName();
|
||||
const file = _.isString(filename) && filename.length > 0 ? filename : getDefaultExportName();
|
||||
|
||||
/**
|
||||
* To a Strapi backup file
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user