Complete URBM product rename
This commit is contained in:
+46
-6
@@ -1,12 +1,52 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
CONFIG=/boot/config/plugins/backupper
|
||||
mkdir -p "$CONFIG" /run/backupper /var/lib/backupper
|
||||
chmod 0700 "$CONFIG"
|
||||
chmod 0750 /run/backupper /var/lib/backupper
|
||||
ROOT_PREFIX=${URBM_ROOT_PREFIX:-}
|
||||
CONFIG="$ROOT_PREFIX/boot/config/plugins/urbm"
|
||||
OLD_NAME="back""upper"
|
||||
OLD_CONFIG="$ROOT_PREFIX/boot/config/plugins/$OLD_NAME"
|
||||
|
||||
if [ -x /etc/rc.d/rc.backupper ]; then
|
||||
/etc/rc.d/rc.backupper restart || true
|
||||
if [ -x "$ROOT_PREFIX/etc/rc.d/rc.$OLD_NAME" ]; then
|
||||
"$ROOT_PREFIX/etc/rc.d/rc.$OLD_NAME" stop || true
|
||||
fi
|
||||
|
||||
mkdir -p "$CONFIG" "$ROOT_PREFIX/run/urbm" "$ROOT_PREFIX/var/lib/urbm"
|
||||
if [ -d "$OLD_CONFIG" ]; then
|
||||
for item in config.json runs.json secrets; do
|
||||
if [ -e "$OLD_CONFIG/$item" ] && [ ! -e "$CONFIG/$item" ]; then
|
||||
cp -a "$OLD_CONFIG/$item" "$CONFIG/$item"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -f "$CONFIG/config.json" ]; then
|
||||
sed \
|
||||
-e "s#/usr/local/libexec/$OLD_NAME/restic#/usr/local/libexec/urbm/restic#g" \
|
||||
-e "s#/mnt/user/$OLD_NAME-restores#/mnt/user/urbm-restores#g" \
|
||||
-e "s#/mnt/user/system/$OLD_NAME-logs#/mnt/user/system/urbm-logs#g" \
|
||||
"$CONFIG/config.json" > "$CONFIG/config.json.migrated"
|
||||
chmod 0600 "$CONFIG/config.json.migrated"
|
||||
mv "$CONFIG/config.json.migrated" "$CONFIG/config.json"
|
||||
fi
|
||||
|
||||
chmod 0700 "$CONFIG"
|
||||
chmod 0750 "$ROOT_PREFIX/run/urbm" "$ROOT_PREFIX/var/lib/urbm"
|
||||
|
||||
rm -rf \
|
||||
"$ROOT_PREFIX/usr/local/emhttp/plugins/$OLD_NAME" \
|
||||
"$ROOT_PREFIX/usr/local/libexec/$OLD_NAME" \
|
||||
"$ROOT_PREFIX/usr/local/sbin/${OLD_NAME}d" \
|
||||
"$ROOT_PREFIX/etc/rc.d/rc.$OLD_NAME" \
|
||||
"$ROOT_PREFIX/run/$OLD_NAME" \
|
||||
"$ROOT_PREFIX/var/lib/$OLD_NAME" \
|
||||
"$OLD_CONFIG"
|
||||
rm -f \
|
||||
"$ROOT_PREFIX/boot/config/plugins/$OLD_NAME.plg" \
|
||||
"$ROOT_PREFIX/var/log/plugins/$OLD_NAME.plg" \
|
||||
"$ROOT_PREFIX/tmp/plugins/$OLD_NAME.plg" \
|
||||
"$ROOT_PREFIX/tmp/plugins/$OLD_NAME.txt" \
|
||||
"$ROOT_PREFIX/var/log/$OLD_NAME.log"
|
||||
|
||||
if [ -x "$ROOT_PREFIX/etc/rc.d/rc.urbm" ]; then
|
||||
"$ROOT_PREFIX/etc/rc.d/rc.urbm" restart || true
|
||||
fi
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
DAEMON=/usr/local/sbin/backupperd
|
||||
PIDFILE=/run/backupper/backupper.pid
|
||||
LOGFILE=/var/log/backupper.log
|
||||
DAEMON=/usr/local/sbin/urbmd
|
||||
PIDFILE=/run/urbm/urbm.pid
|
||||
LOGFILE=/var/log/urbm.log
|
||||
|
||||
start() {
|
||||
mkdir -p /run/backupper /var/lib/backupper /boot/config/plugins/backupper
|
||||
chmod 0750 /run/backupper /var/lib/backupper
|
||||
chmod 0700 /boot/config/plugins/backupper
|
||||
mkdir -p /run/urbm /var/lib/urbm /boot/config/plugins/urbm
|
||||
chmod 0750 /run/urbm /var/lib/urbm
|
||||
chmod 0700 /boot/config/plugins/urbm
|
||||
if [ -s "$PIDFILE" ] && kill -0 "$(cat "$PIDFILE")" 2>/dev/null; then
|
||||
return 0
|
||||
fi
|
||||
rm -f "$PIDFILE" /run/backupper/backupper.sock
|
||||
rm -f "$PIDFILE" /run/urbm/urbm.sock
|
||||
nohup "$DAEMON" >>"$LOGFILE" 2>&1 &
|
||||
echo $! >"$PIDFILE"
|
||||
}
|
||||
@@ -30,19 +30,19 @@ stop() {
|
||||
STOPPED=1
|
||||
fi
|
||||
if [ "$STOPPED" -eq 0 ]; then
|
||||
PIDS=$(pidof backupperd 2>/dev/null || true)
|
||||
PIDS=$(pidof urbmd 2>/dev/null || true)
|
||||
for PID in $PIDS; do
|
||||
kill "$PID" 2>/dev/null || true
|
||||
done
|
||||
for _ in $(seq 1 30); do
|
||||
[ -z "$(pidof backupperd 2>/dev/null)" ] && break
|
||||
[ -z "$(pidof urbmd 2>/dev/null)" ] && break
|
||||
sleep 1
|
||||
done
|
||||
for PID in $(pidof backupperd 2>/dev/null); do
|
||||
for PID in $(pidof urbmd 2>/dev/null); do
|
||||
kill -9 "$PID" 2>/dev/null || true
|
||||
done
|
||||
fi
|
||||
rm -f /run/backupper/backupper.sock
|
||||
rm -f /run/urbm/urbm.sock
|
||||
}
|
||||
|
||||
case "${1:-}" in
|
||||
@@ -50,7 +50,7 @@ case "${1:-}" in
|
||||
stop) stop ;;
|
||||
restart) stop; start ;;
|
||||
status)
|
||||
if [ -s "$PIDFILE" ] && kill -0 "$(cat "$PIDFILE")" 2>/dev/null; then echo "backupperd is running"; else echo "backupperd is stopped"; exit 1; fi
|
||||
if [ -s "$PIDFILE" ] && kill -0 "$(cat "$PIDFILE")" 2>/dev/null; then echo "urbmd is running"; else echo "urbmd is stopped"; exit 1; fi
|
||||
;;
|
||||
*) echo "Usage: $0 {start|stop|restart|status}"; exit 2 ;;
|
||||
esac
|
||||
+12
-12
@@ -1,12 +1,12 @@
|
||||
backupper: URBM - Unraid Restic Backup Manager
|
||||
backupper:
|
||||
backupper: Native Restic backup management for Unraid 7.
|
||||
backupper: Provides encrypted, deduplicated and versioned backups,
|
||||
backupper: snapshot browsing, restores, scheduling and notifications.
|
||||
backupper:
|
||||
backupper: Author: Michael Roll
|
||||
backupper: https://git.casaderoll.de/michael/BackUpper
|
||||
backupper:
|
||||
backupper:
|
||||
backupper:
|
||||
backupper:
|
||||
urbm: URBM - Unraid Restic Backup Manager
|
||||
urbm:
|
||||
urbm: Native Restic backup management for Unraid 7.
|
||||
urbm: Provides encrypted, deduplicated and versioned backups,
|
||||
urbm: snapshot browsing, restores, scheduling and notifications.
|
||||
urbm:
|
||||
urbm: Author: Michael Roll
|
||||
urbm: https://git.casaderoll.de/michael/URBM
|
||||
urbm:
|
||||
urbm:
|
||||
urbm:
|
||||
urbm:
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "backupper">
|
||||
<!ENTITY name "urbm">
|
||||
<!ENTITY author "Michael Roll">
|
||||
<!ENTITY version "2026.06.14.r001">
|
||||
<!ENTITY pluginURL "https://git.casaderoll.de/michael/BackUpper/raw/branch/main/dist/backupper.plg">
|
||||
<!ENTITY packageURL "https://git.casaderoll.de/michael/BackUpper/raw/branch/main/dist/backupper-&version;-x86_64-1.txz">
|
||||
<!ENTITY version "2026.06.14.r002">
|
||||
<!ENTITY pluginURL "https://git.casaderoll.de/michael/URBM/raw/branch/main/dist/urbm.plg">
|
||||
<!ENTITY packageURL "https://git.casaderoll.de/michael/URBM/raw/branch/main/dist/urbm-&version;-x86_64-1.txz">
|
||||
<!ENTITY packageSHA256 "REPLACE_DURING_RELEASE">
|
||||
]>
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0" support="https://git.casaderoll.de/michael/BackUpper/issues" icon="backupper.png">
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0" support="https://git.casaderoll.de/michael/URBM/issues" icon="urbm.png">
|
||||
<CHANGES>
|
||||
### 2026.06.14.r002
|
||||
- Complete the product rename to URBM across the plugin ID, package, daemon, WebGUI, runtime paths, configuration paths, notifications, and Restic tags.
|
||||
- Migrate existing configuration, run history, and encrypted secrets into the new URBM configuration directory.
|
||||
|
||||
### 2026.06.14.r001
|
||||
- Switch to a zero-padded release identifier that remains sortable by Unraid's lexical version comparison.
|
||||
- Add the complete German WebGUI translation from the superseded 2026.06.14.9.13 build.
|
||||
@@ -62,7 +66,7 @@
|
||||
- Replace the job cron input with daily, weekday, selected-day, and time controls.
|
||||
|
||||
### 2026.06.14.8
|
||||
- Show Michael Roll as the plugin author and add a dedicated Backupper logo.
|
||||
- Show Michael Roll as the plugin author and add a dedicated URBM logo.
|
||||
|
||||
### 2026.06.14.7
|
||||
- Add per-job age-based retention and optional daily, weekly, and monthly rotation settings.
|
||||
@@ -111,36 +115,36 @@
|
||||
- Add delayed German tooltips with examples throughout the WebGUI.
|
||||
|
||||
### 0.1.4
|
||||
- Add Backupper as a first-class top navigation tab.
|
||||
- Add URBM as a first-class top navigation tab.
|
||||
- Use native Unraid theme colors for reliable contrast.
|
||||
|
||||
### 0.1.3
|
||||
- Restore the Backupper entry directly under the Unraid Tools menu.
|
||||
- Restore the URBM entry directly under the Unraid Tools menu.
|
||||
|
||||
### 0.1.2
|
||||
- Improve readability and contrast in Unraid light and dark themes.
|
||||
|
||||
### 0.1.1
|
||||
- Show Backupper under Tools / Utilities in the Unraid WebGUI.
|
||||
- Show URBM under Tools / Utilities in the Unraid WebGUI.
|
||||
|
||||
### 0.1.0
|
||||
- Initial MVP release.
|
||||
</CHANGES>
|
||||
<FILE Name="/boot/config/plugins/&name;/backupper-&version;-x86_64-1.txz" Run="upgradepkg --install-new">
|
||||
<FILE Name="/boot/config/plugins/&name;/urbm-&version;-x86_64-1.txz" Run="upgradepkg --install-new">
|
||||
<URL>&packageURL;</URL>
|
||||
<SHA256>&packageSHA256;</SHA256>
|
||||
</FILE>
|
||||
<FILE Run="/bin/bash">
|
||||
<INLINE>
|
||||
chmod 0700 /boot/config/plugins/&name;
|
||||
/etc/rc.d/rc.backupper restart
|
||||
/etc/rc.d/rc.urbm restart
|
||||
</INLINE>
|
||||
</FILE>
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
/etc/rc.d/rc.backupper stop || true
|
||||
/etc/rc.d/rc.urbm stop || true
|
||||
removepkg &name;
|
||||
rm -rf /usr/local/emhttp/plugins/&name; /usr/local/libexec/&name; /usr/local/sbin/backupperd /etc/rc.d/rc.backupper /run/backupper /var/lib/backupper
|
||||
rm -rf /usr/local/emhttp/plugins/&name; /usr/local/libexec/&name; /usr/local/sbin/urbmd /etc/rc.d/rc.urbm /run/urbm /var/lib/urbm
|
||||
</INLINE>
|
||||
</FILE>
|
||||
</PLUGIN>
|
||||
Reference in New Issue
Block a user