diff --git a/backup.in b/backup.in index 6e30c3a..169b6f7 100644 --- a/backup.in +++ b/backup.in @@ -1,25 +1,6 @@ #!/bin/sh -# $Log: backup.in,v $ -# Revision 1.6 2022-06-30 01:27:55+05:30 Cprogrammer -# exit if DEST is not set -# -# Revision 1.5 2021-09-29 19:38:02+05:30 Cprogrammer -# reverted backup script to v1.4 # -# Revision 1.4 2021-04-13 15:54:41+05:30 Cprogrammer -# check for mkdir error -# -# Revision 1.3 2021-04-13 15:29:23+05:30 Cprogrammer -# append hostname to backup directory -# -# Revision 1.2 2021-04-01 20:52:00+05:30 Cprogrammer -# use absolute paths in BACKUP env variable -# -# Revision 1.1 2020-08-31 22:55:51+05:30 Cprogrammer -# Initial revision -# -# -# $Id: backup.in,v 1.6 2022-06-30 01:27:55+05:30 Cprogrammer Exp mbhangui $ +# $Id: backup.in,v 1.7 2024-03-14 16:34:46+05:30 Cprogrammer Exp mbhangui $ # HOST=$(uname -n) if [ -z "$DEST" ] ; then @@ -36,6 +17,39 @@ if [ -n "$BACKUP" -a -n "$DEST" ] ; then exit 1 fi fi - exec rsync -valptgomHE --delete $BACKUP $DEST/backup/$HOST + for i in $BACKUP + do + d=$(dirname $i) + if [ ! -d $DEST/backup/$HOST"$d" ] ; then + mkdir -p $DEST/backup/$HOST"$d" + fi + rsync -valptgomHE --delete $i $DEST/backup/$HOST"$d" + done fi exit 0 +# +# $Log: backup.in,v $ +# Revision 1.7 2024-03-14 16:34:46+05:30 Cprogrammer +# transfer files with original directory into dest +# +# Revision 1.7 2024-03-08 19:49:17+05:30 Cprogrammer +# transfer files with original directory into dest +# +# Revision 1.6 2022-06-30 01:27:55+05:30 Cprogrammer +# exit if DEST is not set +# +# Revision 1.5 2021-09-29 19:38:02+05:30 Cprogrammer +# reverted backup script to v1.4 +# +# Revision 1.4 2021-04-13 15:54:41+05:30 Cprogrammer +# check for mkdir error +# +# Revision 1.3 2021-04-13 15:29:23+05:30 Cprogrammer +# append hostname to backup directory +# +# Revision 1.2 2021-04-01 20:52:00+05:30 Cprogrammer +# use absolute paths in BACKUP env variable +# +# Revision 1.1 2020-08-31 22:55:51+05:30 Cprogrammer +# Initial revision +# diff --git a/create_service.in b/create_service.in index 9ed5aa5..4214cec 100644 --- a/create_service.in +++ b/create_service.in @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: create_service.in,v 1.57 2023-06-30 17:20:43+05:30 Cprogrammer Exp mbhangui $ +# $Id: create_service.in,v 1.58 2024-03-14 16:35:21+05:30 Cprogrammer Exp mbhangui $ # check_update_if_diff() @@ -211,7 +211,10 @@ add_service() fi if [ ! -f $servicedir/$service_name/variables/UPGRADE ] ; then check_update_if_diff $servicedir/$service_name/variables/UPGRADE \ - "ucspi-tcp mpdev libqmail indimail-mini daemontools pistop mpd" + "ucspi-tcp mpdev libqmail libdkim2 libsrs2 indimail-mini daemontools pistop mpd" \ + "upmpdcli upmpdcli-config upmpdcli-radios libnpupnp1 libnpupnp1-dev libupnpp6" \ + "libupnpp6-dev raspotify" + fi if [ ! -f $servicedir/$service_name/variables/INTERVAL ] ; then check_update_if_diff $servicedir/$service_name/variables/INTERVAL 21600 @@ -526,7 +529,7 @@ prog_args="$0 $*" SYSTEM=$(uname -s) music_dir=$(get_mpd_conf_value music_dir) MDRIVE=$(dirname $music_dir) -RCSID="# \$Id: create_service.in,v 1.57 2023-06-30 17:20:43+05:30 Cprogrammer Exp mbhangui $" +RCSID="# \$Id: create_service.in,v 1.58 2024-03-14 16:35:21+05:30 Cprogrammer Exp mbhangui $" while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` @@ -592,6 +595,9 @@ while test $# -gt 0; do done # # $Log: create_service.in,v $ +# Revision 1.58 2024-03-14 16:35:21+05:30 Cprogrammer +# added more packages to UPGRADE env variable +# # Revision 1.57 2023-06-30 17:20:43+05:30 Cprogrammer # added --lcdhost argument # diff --git a/doc/ChangeLog b/doc/ChangeLog index a7e7668..09a88cb 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -44,6 +44,9 @@ Release 1.1 Start 30/06/2022 End --/--/---- 28. pistopserver.c: fixed shutdown - 04/07/2023 29. pistopstart.in: Use umount -f -l to prevent hanging +- 14/03/2024 +30. backup.in: transfer files with original directory into dest +31. create_services.in: added more packages to UPGRADE env variable * Thu Jun 30 2022 18:10:06 IST Manvendra Bhangui 1.0-1.1%{?dist} Release 1.0 Start 28/08/2020 End 30/06/2022