export function formatBackupFilename(version, date = new Date()) {
  const pad = (n) => String(n).padStart(2, '0')
  const y = date.getFullYear()
  const mo = pad(date.getMonth() + 1)
  const d = pad(date.getDate())
  const h = pad(date.getHours())
  const mi = pad(date.getMinutes())
  const s = pad(date.getSeconds())
  return `trainus-${version}-backup-${y}${mo}${d}-${h}h${mi}m${s}s.sqlite3`
}
