create backup with exact timestamp fixes creating backup after few minutes again
This commit is contained in:
parent
50478c65ad
commit
ce78651b27
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ public class ExportBackupService extends Service {
|
|||
secureRandom.nextBytes(salt);
|
||||
final BackupFileHeader backupFileHeader = new BackupFileHeader(getString(R.string.app_name), account.getJid(), System.currentTimeMillis(), IV, salt);
|
||||
final Progress progress = new Progress(mBuilder, max, count);
|
||||
final File file = new File(getBackupDirectory(null), account.getJid().asBareJid().toEscapedString() + "_" + ((new SimpleDateFormat("yyyy-MM-dd")).format(new Date())) + ".ceb");
|
||||
final File file = new File(getBackupDirectory(null), account.getJid().asBareJid().toEscapedString() + "_" + ((new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss")).format(new Date())) + ".ceb");
|
||||
files.add(file);
|
||||
final File directory = file.getParentFile();
|
||||
if (directory != null && directory.mkdirs()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue