You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloading config for host 'wled-buero.user.mydomain.eu'
Downloading config for host 'wled-buero.user.mydomain.eu'
Downloading presets for host 'wled-buero.user.mydomain.eu'
Downloading presets for host 'wled-buero.user.mydomain.eu'
Written Files:
# ls -l Backups/WLED/
total 18
-rw-r--r-- 1 root root 2080 May 10 12:25 wled-buero.config.json
-rw-r--r-- 1 root root 5880 May 10 12:25 wled-buero.presets.json
-rw-r--r-- 1 root root 2080 May 10 12:25 wled-zimmer.config.json
-rw-r--r-- 1 root root 5880 May 10 12:25 wled-zimmer.presets.json
As you see it dumps wled-buero, as wled-zimmer.
It doesn't matter if i use the IP or Hostname.
Workaroud Script
#/bin/bash
Backup_DIR=/root/Backups/WLED
wled_backup_exec=/root/scripts/wled-backup_linux_x64
currtime=$(TZ="Europe/Berlin" date +"%Y%m%d-%H%M")
# Array of hosts
hosts=("wled-buero.user.mydomain.eu" "wled-zimmer.user.mydomain.eu")
# Loop over each host
for host in "${hosts[@]}"; do
# Extract the host name from the full address
host_name=$(echo "$host" | cut -d'.' -f1)
# Execute the backup
$wled_backup_exec export --hosts="$host" --outputDir="$Backup_DIR"
# Rename the configuration and presets files
mv "$Backup_DIR/$host_name.config.json" "$Backup_DIR/${currtime}_$host_name.config.json"
mv "$Backup_DIR/$host_name.presets.json" "$Backup_DIR/${currtime}_$host_name.presets.json"
done
The script will rename the files additionally to include a timestamp. I need that anyway to dump daily with a cronjob the Backups into the same directory.
Cheers
The text was updated successfully, but these errors were encountered:
If you backup multiple wled instances, your executable dumps always the last instance:
# ./scripts/wled-backup_linux_x64 export --hosts=wled-zimmer.user.mydomain.eu,wled-buero.user.mydomain.eu --outputDir=/root/Backups/WLED
Output:
Written Files:
As you see it dumps wled-buero, as wled-zimmer.
It doesn't matter if i use the IP or Hostname.
Workaroud Script
Cheers
The text was updated successfully, but these errors were encountered: