.\" Man page generated from reStructuredText. . .TH "GAMMU-BACKUP" "5" "Oct 03, 2020" "1.42.0" "Gammu" .SH NAME gammu-backup \- gammu(1) backup file format. . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .sp The backup format is text file encoded in either ASCII or UCS\-2\-BE encodings. .sp This file use ini file syntax, see ini\&. .SH EXAMPLES .sp If you will backup settings to Gammu text file, it will be possible to edit it. It\(aqs easy: many things in this file will be written double \- once in Unicode, once in ASCII. When you will remove Unicode version Gammu will use ASCII on \fBrestore\fP (and you can easy edit ASCII text) and will convert it according to your OS locale. When will be available Unicode version of text, it will be used instead of ASCII (useful with Unicode phones \- it isn\(aqt important, what locale is set in computer and no conversion Unicode \-> ASCII and ASCII \-> Unicode is done). .sp You can use any editor with regular expressions function to edit backup text file. Examples of such editors can be \fI\%vim\fP or \fI\%TextPad\fP which both do support regular expressions. .sp Remove info about voice tags .sp Find: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ^Entry\e([0\-9][0\-9]\e)VoiceTag = \e(.*\e)\en .ft P .fi .UNINDENT .UNINDENT .sp Replace: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C .ft P .fi .UNINDENT .UNINDENT .sp Change all numbers starting from +3620, +3630, +3660, +3670 to +3620 .sp Find: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Type = NumberGeneral\enEntry\e([0\-9][0\-9]\e)Text = "\e+36\e(20\e|30\e|60\e|70\e)\en .ft P .fi .UNINDENT .UNINDENT .sp Replace: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Type = NumberMobile\enEntry\e1Text = "\e+3620 .ft P .fi .UNINDENT .UNINDENT .sp Change phone numbers type to mobile for numbers starting from +3620, +3630,... and removing the corresponding TextUnicode line .sp Find: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Type = NumberGeneral\enEntry\e([0\-9][0\-9]\e)Text = "\e+36\e([2367]0\e)\e([^\e"]*\e)"\enEntry\e([0\-9][0\-9]\e)TextUnicode = \e([^\en]*\e)\en .ft P .fi .UNINDENT .UNINDENT .sp Replace: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Type = NumberMobile\enEntry\e1Text = "\e+36\e2\e3"\en .ft P .fi .UNINDENT .UNINDENT .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 converting\-formats .UNINDENT .UNINDENT .SH AUTHOR Michal Čihař .SH COPYRIGHT 2009-2015, Michal Čihař .\" Generated by docutils manpage writer. .