package created using the webbuild interface [release 24.06.3-1mamba;Wed Nov 06 2024]
This commit is contained in:
parent
a4b0d61957
commit
cfcd138a4c
@ -1,2 +1,6 @@
|
||||
# timeshift
|
||||
|
||||
System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots.
|
||||
Supports scheduled snapshots, multiple backup levels, and exclude filters.
|
||||
Snapshots can be restored while system is running or from Live CD/USB.
|
||||
|
||||
|
15
timeshift-boot.service
Normal file
15
timeshift-boot.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Timeshift Snapshots for Boot
|
||||
Documentation=man:timeshift(1)
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/timeshift --create --scripted --tags B
|
||||
|
||||
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_FOWNER CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
|
||||
LockPersonality=true
|
||||
NoNewPrivileges=false
|
||||
PrivateNetwork=true
|
||||
ProtectHostname=true
|
||||
RestrictAddressFamilies=AF_UNIX
|
||||
RestrictRealtime=true
|
10
timeshift-boot.timer
Normal file
10
timeshift-boot.timer
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Hourly Timeshift check for snapshots
|
||||
Documentation=man:timeshift(1)
|
||||
|
||||
[Timer]
|
||||
OnBootSec=600
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
15
timeshift-hourly.service
Normal file
15
timeshift-hourly.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Timeshift Snapshots
|
||||
Documentation=man:timeshift(1)
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/timeshift --check --scripted
|
||||
|
||||
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_FOWNER CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
|
||||
LockPersonality=true
|
||||
NoNewPrivileges=false
|
||||
PrivateNetwork=true
|
||||
ProtectHostname=true
|
||||
RestrictAddressFamilies=AF_UNIX
|
||||
RestrictRealtime=true
|
10
timeshift-hourly.timer
Normal file
10
timeshift-hourly.timer
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Hourly Timeshift check for snapshots
|
||||
Documentation=man:timeshift(1)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=hourly
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
82
timeshift.spec
Normal file
82
timeshift.spec
Normal file
@ -0,0 +1,82 @@
|
||||
Name: timeshift
|
||||
Version: 24.06.3
|
||||
Release: 1mamba
|
||||
Summary: System restore tool for Linux
|
||||
Group: System/
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://github.com/linuxmint/timeshift
|
||||
Source: https://github.com/linuxmint/timeshift.git/%{version}/timeshift-%{version}.tar.bz2
|
||||
Source1: timeshift-boot.service
|
||||
Source2: timeshift-boot.timer
|
||||
Source3: timeshift-hourly.service
|
||||
Source4: timeshift-hourly.timer
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libcairo-devel
|
||||
BuildRequires: libgdk-pixbuf-devel
|
||||
BuildRequires: libgee-devel
|
||||
BuildRequires: libglib-devel
|
||||
BuildRequires: libgtk3-devel
|
||||
BuildRequires: libjson-glib-devel
|
||||
BuildRequires: libvte-devel
|
||||
BuildRequires: libxapp-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: meson
|
||||
Requires: rsync
|
||||
|
||||
%description
|
||||
System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots.
|
||||
Supports scheduled snapshots, multiple backup levels, and exclude filters.
|
||||
Snapshots can be restored while system is running or from Live CD/USB.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%meson_install
|
||||
|
||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/timeshift-boot.service
|
||||
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/timeshift-boot.timer
|
||||
install -D -m0644 %{SOURCE3} %{buildroot}%{_unitdir}/timeshift-hourly.service
|
||||
install -D -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/timeshift-hourly.timer
|
||||
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/timeshift/default.json
|
||||
%{_bindir}/timeshift
|
||||
%{_bindir}/timeshift-gtk
|
||||
%{_bindir}/timeshift-launcher
|
||||
%{_datadir}/applications/timeshift-gtk.desktop
|
||||
%{_metainfodir}/timeshift.appdata.xml
|
||||
%{_datadir}/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
|
||||
%{_unitdir}/timeshift-boot.service
|
||||
%{_unitdir}/timeshift-boot.timer
|
||||
%{_unitdir}/timeshift-hourly.service
|
||||
%{_unitdir}/timeshift-hourly.timer
|
||||
%{_datadir}/pixmaps/timeshift.png
|
||||
%dir %{_datadir}/timeshift
|
||||
%dir %{_datadir}/timeshift/images
|
||||
%{_datadir}/timeshift/images/*
|
||||
%{_datadir}/icons/hicolor/*/apps/timeshift.png
|
||||
%{_mandir}/man1/timeshift-gtk.1*
|
||||
%{_mandir}/man1/timeshift.1*
|
||||
%doc AUTHORS LICENSES
|
||||
|
||||
%changelog
|
||||
* Wed Nov 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 24.06.3-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user