Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | a5356d71eb | |
Daniel Berteaud | 4dc56a7681 | |
Daniel Berteaud | a64e44f771 | |
Daniel Berteaud | 12769d743d | |
Daniel Berteaud | 5b3786fb5b | |
Daniel Berteaud | 37669bdf1c | |
Daniel Berteaud | 31793021cf | |
Daniel Berteaud | 6ce2f4e1dd | |
Daniel Berteaud | cc6cf05c9b | |
Daniel Berteaud | 597b32246d | |
Daniel Berteaud | 37179cfdf3 |
|
@ -0,0 +1,3 @@
|
|||
the .tito/packages directory contains metadata files
|
||||
named after their packages. Each file has the latest tagged
|
||||
version and the project's relative directory.
|
|
@ -0,0 +1 @@
|
|||
0.1.4-3 ./
|
|
@ -0,0 +1 @@
|
|||
../../tito_libs/releasers.conf
|
|
@ -0,0 +1,6 @@
|
|||
[buildconfig]
|
||||
builder = tito.builder.Builder
|
||||
tagger = tito.tagger.ReleaseTagger
|
||||
changelog_do_not_remove_cherrypick = 0
|
||||
changelog_format = %s (%ae)
|
||||
lib_dir = ../tito_libs
|
|
@ -1,10 +1,6 @@
|
|||
%define name BackupPC-server-scripts
|
||||
%define version 0.1.1
|
||||
%define release 1
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}%{?dist}
|
||||
Name: BackupPC-server-scripts
|
||||
Version: 0.1.4
|
||||
Release: 3%{?dist}
|
||||
Summary: Some scripts for a BackupPC server
|
||||
|
||||
Group: Applications/System
|
||||
|
@ -22,6 +18,18 @@ Provides some scripts to run a a BackupPC server.
|
|||
Like pre-backup scripts for Windows boxes
|
||||
|
||||
%changelog
|
||||
* Tue Jan 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.1.4-3
|
||||
- Release bump
|
||||
|
||||
* Thu Dec 09 2021 Daniel Berteaud <dani@lapiole.org> 0.1.4-2
|
||||
- Use ReleaseTagger (dani@lapiole.org)
|
||||
|
||||
* Tue Aug 21 2018 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1
|
||||
- new package built with tito
|
||||
- Default timeout is now 900
|
||||
* Wed Sep 16 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.1.2-1
|
||||
- Adapt winexe commandline args so it works with winexe 1.1
|
||||
|
||||
* Thu Jul 5 2012 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0
|
||||
- initial release
|
||||
|
||||
|
@ -52,7 +60,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG.git
|
||||
%{_bindir}/*
|
||||
%config(noreplace) %attr(0640, root, backuppc) %{_sysconfdir}/BackupPC/*
|
||||
|
||||
|
|
|
@ -9,14 +9,14 @@ if [ ! -z $3 ]; then
|
|||
PASS=$3
|
||||
fi
|
||||
|
||||
# Timeout after 5 minutes
|
||||
TIMEOUT=300
|
||||
# Timeout after 15 minutes
|
||||
TIMEOUT=900
|
||||
|
||||
BOX=$1
|
||||
|
||||
if [[ ! -z $UNAME && ! -z $PASS ]]; then
|
||||
/usr/bin/timeout $TIMEOUT $WINEXE -s /dev/null -U $UNAME --password=$PASS //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&-
|
||||
/usr/bin/timeout $TIMEOUT $WINEXE -U $UNAME%$PASS //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&-
|
||||
else
|
||||
/usr/bin/timeout $TIMEOUT $WINEXE -s /dev/null --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&-
|
||||
/usr/bin/timeout $TIMEOUT $WINEXE --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c echo '1' > c:\backuppc\wake.up' <&-
|
||||
fi
|
||||
echo "Rsync and shadow copy unloaded"
|
||||
|
|
|
@ -7,15 +7,15 @@ if [ ! -z $3 ]; then
|
|||
PASS=$3
|
||||
fi
|
||||
|
||||
# Timeout after 5 minutes
|
||||
TIMEOUT=300
|
||||
# Timeout after 15 minutes
|
||||
TIMEOUT=900
|
||||
|
||||
BOX=$1
|
||||
|
||||
if [[ ! -z $UNAME && ! -z $PASS ]]; then
|
||||
/usr/bin/timeout $TIMEOUT /usr/bin/winexe -s /dev/null --interactive=0 -U $UNAME --password=$PASS //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255
|
||||
/usr/bin/timeout $TIMEOUT /usr/bin/winexe --interactive=0 -U $UNAME%$PASS //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255
|
||||
else
|
||||
/usr/bin/timeout $TIMEOUT /usr/bin/winexe -s /dev/null --interactive=0 --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255
|
||||
/usr/bin/timeout $TIMEOUT /usr/bin/winexe --interactive=0 --authentication-file=/etc/BackupPC/win.conf //$BOX 'cmd /c c:\backuppc\pre-exec.cmd' <&- || exit 255
|
||||
fi
|
||||
sleep 5
|
||||
echo "Rsync and shadow copy loaded"
|
||||
|
|
Loading…
Reference in New Issue