]> git.pld-linux.org Git - packages/dar.git/blob - dar.spec
- added _with_static bcond
[packages/dar.git] / dar.spec
1 #
2 # Conditional build:
3 # _with_static         build dar_static
4 #
5 Summary:        dar makes backup of a directory tree and files
6 Summary(pl):    dar - narzêdzie do tworzenia kopii zapasowych drzew katalogów i plików
7 Name:           dar
8 Version:        1.2.1
9 Release:        2
10 License:        GPL
11 Group:          Applications
12 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-nostatic_compilation.patch
14 URL:            http://dar.linux.free.fr/
15 %if %{?_with_static:1}0
16 BuildRequires:  glibc-static
17 BuildRequires:  libstdc++-static
18 BuildRequires:  zlib-static
19 %endif
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 dar is a shell command, that makes backup of a directory tree and
24 files.
25
26 FILTERS: dar is able to backup from total file system to a single
27 file. Additionally a mechanism of filters permits, based on the
28 filename, to exclude or include some files while backing up or
29 restoring a directory tree. In the other side, a secondary filter
30 mechanism permits to exclude some branches of a directory tree, or to
31 only include some branches.
32
33 DIFFERENTIAL BACKUP: When making a backup with dar, you have the
34 possibility to make a full backup or a differential backup. A full
35 backup, as expected makes backup of all files as specified on the
36 command line (with or without filters). Instead, a differential
37 backup, (over filter mechanism), saves only files that have changed
38 since a given reference backup. Additionally, files that existed in
39 the reference backup and which do no more exist at the time of the
40 differential backup are recorded in the backup. At recovery time,
41 (unless you deactivate it), restoring a differential backup will
42 update changed files and new files, but also remove files that have
43 been recorded as deleted. Note that the reference backup can be a full
44 backup or another differential backup. This way you can make a first
45 full backup, then many differential backup, each taking as reference
46 the last backup made.
47
48 SLICES: Dar stands for Disk ARchive. From the beginning it was
49 designed to be able to split an archive over several removable media
50 whatever their number is and whatever their size is. Thus dar is able
51 to save over old floppy disk, CD-R, DVD-R, CD-RW, DVD-RW, Zip, Jazz,
52 etc... Dar is not concerned by un/mounting a removable medium, instead
53 it is independent of hardware. Given the size, it will split the
54 archive in several files (called SLICES), eventually pausing before
55 creating the next one, allowing this way, the user to un/mount a
56 medium, burn the file on CD-R, send it by email (if your mail system
57 does not allow huge file in emails, dar can help you here also). By
58 default, (no size specified), dar will make one slice whatever its
59 size is. Additionally, the size of the first slice can be specified
60 separately, if for example you want first to fulfil a partially filled
61 disk before starting using empty ones. Last, at restoration time, dar
62 will just pause and prompt the user asking a slice only if it is
63 missing.
64
65 COMPRESSION: last, dar can use compression. By default no compression
66 is used. Actually only gzip algorithm is implemented, but some room
67 has been done for bzip2 and any other compression algorithm. Note
68 that, compression is made before slices, which means that using
69 compression with slices, will not make slices smaller, but will
70 probably make less slices in the backup.
71
72 DIRECT ACCESS: even using compression dar has not to read the whole
73 backup to extract one file. This way if you just want to restore one
74 file from a huge backup, the process will be much faster than using
75 tar. Dar first reads the catalogue (i.e. the contents of the backup),
76 then it goes directly to the location of the saved file(s) you want to
77 restore and proceed to restoration. In particular using slices dar
78 will ask only for the slice(s) containing the file(s) to restore.
79
80 HARD LINK CONSIDERATION: hard links are now properly saved. They are
81 properly restored if possible. If for example restoring across a
82 mounted filesystem, hard linking will fail, but dar will then
83 duplicate the inode and file content, issuing a warning.
84
85 EXTENDED ATTRIBUTES: support for extended attributes have to be
86 activated at compilation time (see INSTALL). Dar is able to save and
87 restore EA, all or just those of a given namespace (system or user).
88 If no EA have been saved and restoration occurs over a file that has
89 EA, they will be preserved. But if they have been saved empty for a
90 given file, any existing EA for that file will be removed at
91 restoration time, unless -u and/or -U is given on command-line.
92
93 ARCHIVE TESTING thanks to CRC (cyclic redundancy checks), dar is able
94 to detect data corruption in the archive. Only the file where data
95 corruption occurred will not be possible to restore, but dar will
96 restore the other even when compression is used.
97
98 USING PIPES dar is now able to produce an archive to its standard
99 output or named pipe. it is also able to read an archive through a
100 pair of pipes, to take a remote archive as reference, or even to
101 restore data from a remote archive. This way it is now possible to
102 store an archive remotely and in total security (if using encrypted
103 means)
104
105 ISOLATION the catalogue (i.e.: the contents of an archive), can be
106 extracted (this operation is called isolation) to a small file, that
107 can in turn be used as reference for differential archive. There is no
108 more need to provide an archive to be able to create a differential
109 backup over it, just its catalogue is necessary.
110
111 RE-SHAPE SLICES OF AN EXISTING ARCHIVE the external program named
112 "dar_xform" is able to change the size of slices of a given archive.
113 The resulting archive is totally identical to archives directly
114 created by dar. Source archive can be taken from a set of slice, from
115 standard input or even a named pipe.
116
117 %description -l pl
118 dar jest poleceniem pow³oki, które tworzy kopie zapasowe drzew
119 katalogów i plików. Mo¿liwo¶ci:
120 - Filtry: dar mo¿e tworzyæ kopiê zapasow± ca³ego systemu plików do
121   pojedynczego pliku; mechanizm filtrów pozwala wy³±czaæ lub do³±czaæ
122   pliki przy tworzeniu kopii lub odtwarzaniu z niej.
123 - Backup ró¿nicowy: dar mo¿e tworzyæ kopie pe³ne lub ró¿nicowe
124   (zawieraj±ce tylko te pliki, które zmieni³y siê od innego backupu)
125 - Czê¶ci (slices): dar oznacza "Disk ARchive". Od pocz±tku ma
126   mo¿liwo¶æ dzielenia archiwów na ró¿ne no¶niki wymienialne,
127   niezale¿nie od ich liczby i rozmiaru (mo¿na tworzyæ kopie na CD-R,
128   DVD-R, CD-RW, Zip, Jazz...).
129 - Kompresja: domy¶lnie dar nie kompresuje danych; ma zaimplementowany
130   algorytm gzip, jest przygotowywany do bzip2 i innych. Kompresja jest
131   wykonywana przed podzia³em na czê¶ci.
132 - Bezpo¶redni dostêp: nawet w przypadku u¿ycia kompresji, dar nie musi
133   czytaæ ca³ej kopii aby odtworzyæ jeden plik. Najpierw odczytuje
134   katalog, nastêpnie skacze od razu do w³a¶ciwego miejsca.
135 - Obs³uga twardych dowi±zañ: dar zachowuje i odtwarza je w miarê
136   mo¿liwo¶ci; w przypadku niemo¿liwo¶ci wykonania dowi±zania, powiela
137   plik i wypisuje ostrze¿enie.
138 - Obs³uga rozszerzonych atrybutów (zale¿nie od opcji kompilacji): dar
139   potrafi zachowywaæ i odtwarzaæ rozszerzone atrubuty - wszystkie lub
140   tylko dotycz±ce danej przestrzeni nazw (systemowej lub u¿ytkownika).
141 - Testowanie archiwów: dziêki u¿yciu CRC dar wykrywa uszkodzone dane;
142   tylko uszkodzone pliki nie zostan± odtworzone, reszta tak - nawet w
143   przypadku u¿ycia kompresji.
144 - U¿ycie rurek - dar mo¿e wyprodukowaæ archiwum na standardowe wyj¶cie
145   lub do nazwanej rurki. Mo¿e tak¿e czytaæ archiwum z pary rurek, a
146   nawet odtwarzaæ ze zdalnego archiwum.
147 - Rozdzielenie: katalog (zawarto¶æ archiwum) mo¿e byæ wyci±gniêty do
148   ma³ego pliku, który mo¿e byæ u¿ywany jako odniesienie dla
149   ró¿nicowego backupu.
150 - Przekszta³canie czê¶ci istniej±cego archiwum: zewnêtrzny program o
151   nazwie dar_xform jest w stanie zmieniaæ rozmiary czê¶ci podanego
152   archiwum. Mo¿e czytaæ z zestawu kata³ków, standardowego wej¶cia lub
153   nazwanej rurki.
154
155 %package static
156 Summary:        Static version of dar backup tool
157 Summary(pl):    Statyczna wersja archiwizatora dar
158 Group:          Applications
159
160 %description static
161 Static version of dar backup tool.
162
163 %description static -l pl
164 Statyczna wersja archiwizatora dar.
165
166 %prep
167 %setup -q
168 %patch0 -p1
169
170 %build
171 %{__make} \
172 %if %{?_with_static:1}0
173         BUILD_STATIC=\"yes\" \
174 %else
175         BUILD_STATIC=\"no\" \
176 %endif
177         OPTIMIZATION="%{rpmcflags}"
178
179 %install
180 rm -rf $RPM_BUILD_ROOT
181 %{?_with_static:install -d $RPM_BUILD_ROOT/bin}
182
183 %{__make} install \
184 %if %{?_with_static:1}0
185         BUILD_STATIC=\"yes\" \
186 %else
187         BUILD_STATIC=\"no\" \
188 %endif
189         INSTALL=install \
190         INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
191         BIN_DIR=%{_bindir} \
192         MAN_DIR=%{_mandir}
193
194 %{?_with_static:mv -f $RPM_BUILD_ROOT{%{_bindir},/bin}/dar-static}
195
196 %clean
197 rm -rf $RPM_BUILD_ROOT
198
199 %files
200 %defattr(644,root,root,755)
201 %doc BUGS CHANGES NOTES README TODO TUTORIAL
202 %attr(755,root,root) %{_bindir}/*
203 %attr(644,root,root) %{_mandir}/*
204
205 %if %{?_with_static:1}0
206 %files static
207 %defattr(644,root,root,755)
208 %attr(755,root,root) /bin/*
209 %endif
This page took 0.08702 seconds and 3 git commands to generate.