Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1487019
 поиск   регистрация   авторизация 
 
Группа :: Архивирование/Резервное копирование
Пакет: fsbackup

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: fsbackup
Version: 1.2pl1
Release: alt0.M24.1

Summary: file system backup and synchronization utility
License: GPL
Group: Archiving/Backup

Url: http://www.opennet.ru/dev/fsbackup
Packager: Vladimir V Kamarzin <vvk at altlinux.ru>
BuildArch: noarch

Source0: %name-%version.tar.gz
Source1: %name.cron
Source2: sqlite_backup.conf
Source3: create_backup.conf
Source4: mysql_backup.conf
Source5: pgsql_backup.conf
Source6: sysbackup.conf
Source7: sysrestore.conf
Source8: fsrestore.conf
Source9: README.ALT.KOI8-R

BuildRequires: perl-DBM perl-base perl-libnet

%description
file system backup and synchronization utility

%prep
%setup -q

%build

%install
# scripts
install -pD -m0755 create_backup.sh %buildroot/%_sbindir/create_backup.sh
install -pD -m0755 fsbackup.pl %buildroot/%_sbindir/fsbackup.pl
install -pD -m0755 scripts/fsrestore.sh %buildroot/%_sbindir/fsrestore.sh
install -pD -m0755 scripts/mysql_backup.sh %buildroot/%_sbindir/mysql_backup.sh
install -pD -m0755 scripts/pgsql_backup.sh %buildroot/%_sbindir/pgsql_backup.sh
install -pD -m0755 scripts/sqlite_backup.sh %buildroot/%_sbindir/sqlite_backup.sh
install -pD -m0755 scripts/sysbackup.sh %buildroot/%_sbindir/sysbackup.sh
install -pD -m0755 scripts/sysrestore.sh %buildroot/%_sbindir/sysrestore.sh

# config

install -pD -m0640 cfg_example %buildroot/%_sysconfdir/%name/fsbackup.conf
install -pD -m0640 %SOURCE2 %buildroot/%_sysconfdir/%name/sqlite_backup.conf
install -pD -m0640 %SOURCE3 %buildroot/%_sysconfdir/%name/create_backup.conf
install -pD -m0640 %SOURCE4 %buildroot/%_sysconfdir/%name/mysql_backup.conf
install -pD -m0640 %SOURCE5 %buildroot/%_sysconfdir/%name/pgsql_backup.conf
install -pD -m0640 %SOURCE6 %buildroot/%_sysconfdir/%name/sysbackup.conf
install -pD -m0640 %SOURCE7 %buildroot/%_sysconfdir/%name/sysrestore.conf
install -pD -m0640 %SOURCE8 %buildroot/%_sysconfdir/%name/fsrestore.conf

# dirs

install -d -m0700 %buildroot/%_localstatedir/%name/cache/
install -d -m0700 %buildroot/%_localstatedir/%name/archive/
install -d -m0700 %buildroot/%_localstatedir/%name/sys_backup/

# man

pod2man fsbackup.pl > %name.1
install -pD -m0644 %name.1 %buildroot/%_man1dir/%name.1

# README.ALT

install -pD -m0644 %SOURCE9 README.ALT.KOI8-R

# cron

install -pD -m0644 %SOURCE1 %buildroot/%_sysconfdir/cron.d/%name

%files
%_sbindir/*
%config(noreplace) %_sysconfdir/cron.d/%name
%config(noreplace) %_sysconfdir/%name/*.conf
%dir %attr(0700,root,root) %_sysconfdir/%name
%dir %attr(0700,root,root) %_localstatedir/%name
%dir %attr(0700,root,root) %_localstatedir/%name/cache
%dir %attr(0700,root,root) %_localstatedir/%name/archive
%dir %attr(0700,root,root) %_localstatedir/%name/sys_backup
%_man1dir/*
%doc CHANGES FAQ README* TODO contrib

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005