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