summaryrefslogtreecommitdiff
path: root/docs/man/gammu-backup.5
blob: a7f256bc1cd482268cc5e54712ee579ecf593597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.TH "GAMMU-BACKUP" "5" "February 10, 2011" "1.29.90" "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
..
.\" Man page generated from reStructeredText.
.
.sp
The backup format is text file encoded in either ASCII or UCS\-2\-BE encodings.
.sp
This file use ini file syntax, see \fIini\fP.
.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 fBrestorefR (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:
.sp
.nf
.ft C
^Entry\e([0\-9][0\-9]\e)VoiceTag = \e(.*\e)\en
.ft P
.fi
.sp
Replace:
.sp
.nf
.ft C
<blank>
.ft P
.fi
.sp
Change all numbers starting from +3620, +3630, +3660, +3670 to +3620
.sp
Find:
.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
.sp
Replace:
.sp
.nf
.ft C
Type = NumberMobile\enEntry\e1Text = "\e+3620
.ft P
.fi
.sp
Change phone numbers type to mobile for numbers starting from +3620, +3630,... and removing the corresponding TextUnicode line
.sp
Find:
.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
.sp
Replace:
.sp
.nf
.ft C
Type = NumberMobile\enEntry\e1Text = "\e+36\e2\e3"\en
.ft P
.fi
.IP "See also"
.sp
\fIconverting\-formats\fP
.RE
.SH AUTHOR
Michal Čihař <michal@cihar.com>
.SH COPYRIGHT
2009-2011, Michal Čihař <michal@cihar.com>
.\" Generated by docutils manpage writer.
.\" 
.