Skip to content

Commit d114487

Browse files
committed
Don't add .zip extension to backup files
Backups are done in Gzipped XML files, which should have .gnca extension but never .zip.
1 parent 663230d commit d114487

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/org/gnucash/android/export/xml/GncXmlExporter.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,14 +948,15 @@ public static boolean createBackup(String bookUID){
948948
}
949949

950950
/**
951-
* Returns the full path of a file to make database backup of the specified book
952-
* Backups are done in XML format and are zipped (with ".zip" extension).
951+
* Returns the full path of a file to make database backup of the specified book.
952+
* Backups are done in XML format and are Gzipped (with ".gnca" extension).
953953
* @param bookUID GUID of the book
954954
* @return the file path for backups of the database.
955955
* @see #getBackupFolderPath(String)
956956
*/
957957
private static String getBackupFilePath(String bookUID){
958958
Book book = BooksDbAdapter.getInstance().getRecord(bookUID);
959-
return Exporter.getBackupFolderPath(book.getUID()) + buildExportFilename(ExportFormat.XML, book.getDisplayName()) + ".zip";
959+
return Exporter.getBackupFolderPath(book.getUID())
960+
+ buildExportFilename(ExportFormat.XML, book.getDisplayName());
960961
}
961962
}

0 commit comments

Comments
 (0)