SHA256
1
0
forked from pool/backupninja

Accepting request 1078826 from home:vicentebolea

This bring the latest version of backupninja to OBS. I will be happy to be the maintainer of this package, lets get it to the incoming 15.5

OBS-URL: https://build.opensuse.org/request/show/1078826
OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/backupninja?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2023-04-13 07:42:44 +00:00 committed by Git OBS Bridge
commit 1e3f86931c
7 changed files with 147 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
backupninja-1.2.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d05b306a62a71be61fd7cf664a66fa2d558ad11db5d737f2c16079c9a27e8ed
size 2112328

4
backupninja.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Apr 12 18:00:00 UTC 2023 - Vicente Adolfo Bolea Sanchez <vicente.bolea@gmail.com> - 1.2.2-0
- Added backupninja v1.2.2.

7
backupninja.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Run backupninja
Requires=default.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/backupninja

103
backupninja.spec Normal file
View File

@ -0,0 +1,103 @@
#
# spec file for package backupninja
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: backupninja
Version: 1.2.2
Release: 0
Summary: Lightweight, extensible meta-backup system
License: GPL-2.0
URL: https://0xacab.org/liberate/backupninja
Source0: %{name}-%{version}.tar.gz
Source1: backupninja.service
Source2: backupninja.timer
Group: Productivity/Archiving/Backup
Requires: bash
Requires: gawk
Requires: gzip
Requires: logrotate
Requires: pkgconfig(systemd)
BuildRequires: automake
Recommends: rdiff-backup
Recommends: gzip
Recommends: hwinfo
Recommends: rdiff-backup
Recommends: rsync
Recommends: sfdisk
%description
Backupninja allows you to coordinate system backup by dropping a few simple
configuration files into /etc/backup.d/. Most programs you might use for making
backups don't have their own configuration file format. Backupninja provides a
centralized way to configure and coordinate many different backup utilities.
The key features of backupninja are:
- easy to read ini style configuration files.
- you can drop in scripts to handle new types of backups.
- backup actions can be scheduled.
%prep
%setup -q -n backupninja-backupninja-%{version}
%build
sh autogen.sh
%configure
%make_build
%install
%make_install
# We are using systemd
rm -rf %{buildroot}%{_sysconfdir}/cron.d
# Create other files needed
mkdir -p "%{buildroot}%{_localstatedir}/log"
mkdir -p "%{buildroot}%{_sysconfdir}/backup.d"
touch "%{buildroot}%{_localstatedir}/log/backupninja.log"
# Add the SystemD units
mkdir -p %{buildroot}%{_unitdir}
cp -Lv %{SOURCE1} %{buildroot}%{_unitdir}
cp -Lv %{SOURCE2} %{buildroot}%{_unitdir}
%pre
%service_add_pre %{name}.timer %{name}.service
%post
%service_add_post %{name}.timer %{name}.service
%preun
%service_del_preun %{name}.timer %{name}.service
%postun
%service_del_postun %{name}.timer
%service_del_postun_without_restart %{name}.service
%files
%defattr(-,root,root,-)
%doc CHANGELOG.md README.md
%license COPYING
%{_datadir}/backupninja/*
%{_libdir}/backupninja/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_sbindir}/*
%{_unitdir}/backupninja.*
%ghost %{_localstatedir}/log/backupninja.log
%config(noreplace) %{_sysconfdir}/backupninja.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/backupninja
%dir %{_datadir}/backupninja
%dir %{_libdir}/backupninja
%defattr(0760,root,root,0760)
%dir %{_sysconfdir}/backup.d
%changelog

6
backupninja.timer Normal file
View File

@ -0,0 +1,6 @@
[Timer]
OnCalendar=*-*-* *:00:00
Persistent=true
[Install]
WantedBy=timers.target