private static async Task ExportDB() { try { File sd = Android.OS.Environment.ExternalStorageDirectory; File data = Android.OS.Environment.DataDirectory; if (sd.CanWrite()) { String currentDBPath = "/user/0/com.companyname/files/.local/share/TodoSQLite.db3"; String backupDBPath = "BackupHorarios"; File currentDB = new File(data, currentDBPath); File backupDB = new File(sd, backupDBPath); if (currentDB.Exists()) { FileChannel SourcePath = new FileInputStream(currentDB).Channel; FileChannel DestinationPath = new FileOutputStream(backupDB).Channel; await DestinationPath.TransferFromAsync(SourcePath, 0, SourcePath.Size()); SourcePath.Close(); DestinationPath.Close(); } } } catch (Exception e) { } }