commit 1e3f86931c729f65885ed3b5ddafe838a70f2ebe5ca6525f969a51e51eb7b722 Author: Martin Pluskal Date: Thu Apr 13 07:42:44 2023 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/backupninja-1.2.2.tar.gz b/backupninja-1.2.2.tar.gz new file mode 100644 index 0000000..56c123f --- /dev/null +++ b/backupninja-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d05b306a62a71be61fd7cf664a66fa2d558ad11db5d737f2c16079c9a27e8ed +size 2112328 diff --git a/backupninja.changes b/backupninja.changes new file mode 100644 index 0000000..bdd4c3e --- /dev/null +++ b/backupninja.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Apr 12 18:00:00 UTC 2023 - Vicente Adolfo Bolea Sanchez - 1.2.2-0 + +- Added backupninja v1.2.2. diff --git a/backupninja.service b/backupninja.service new file mode 100644 index 0000000..4a204da --- /dev/null +++ b/backupninja.service @@ -0,0 +1,7 @@ +[Unit] +Description=Run backupninja +Requires=default.target + +[Service] +Type=oneshot +ExecStart=/usr/sbin/backupninja diff --git a/backupninja.spec b/backupninja.spec new file mode 100644 index 0000000..3c033f1 --- /dev/null +++ b/backupninja.spec @@ -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 diff --git a/backupninja.timer b/backupninja.timer new file mode 100644 index 0000000..231c3cd --- /dev/null +++ b/backupninja.timer @@ -0,0 +1,6 @@ +[Timer] +OnCalendar=*-*-* *:00:00 +Persistent=true + +[Install] +WantedBy=timers.target