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