Hi
I have already set up and successfully configured amanda backups. however i want to amend the config. When I do this:
I get this:
Any ideas gratefully received.
Thanks
Hi
I have already set up and successfully configured amanda backups. however i want to amend the config. When I do this:
I get this:
Any ideas gratefully received.
Thanks
Do as you’re told.
Set debugmode=maximum
in /etc/openhabian.conf
and retry.
Thanks. I think this is the relevant output but it doesn’t mean a huge amount to me:
‘’’
‘’’
Nah that’s not of importance. You would need to post the whole output. Use code fences.
And if you just want to change anything about your config edit the files in /etc/amanda/openhab-dir/*
Apologies. Here is the entire debug output in the correct code fence:
2020-06-17_22:32:15_BST [openHABian] Checking for root privileges... OK
+ export UNATTENDED SILENT DEBUGMAX INTERACTIVE
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/backup.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/config.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/ext-storage.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/helpers.bash
++ ESC='\033['
++ COL_DEF='\033[39;49;00m'
++ COL_RED='\033[31;01m'
++ COL_GREEN='\033[32;01m'
++ COL_YELLOW='\033[33;01m'
++ COL_BLUE='\033[34;01m'
++ COL_MAGENTA='\033[35;01m'
++ COL_CYAN='\033[36;01m'
++ COL_LGRAY='\033[37;01m'
++ COL_DGRAY='\033[90;01m'
++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/influxdb+grafana.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/java-jre.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/menu.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/nodejs-apps.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/openhab.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/openhabian.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/packages.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/passwords.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/system.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/wifi.bash
+ for shfile in "$BASEDIR"/functions/*.bash
+ source /opt/openhabian/functions/zram.bash
++ pwd
+ OLDWD=/etc/amanda/openhab-dir
+ cd /opt
+ choose_ipv6
+ local IPV6_DISABLE=net.ipv6.conf.all.disable_ipv6
+ [[ '' == \d\i\s\a\b\l\e ]]
+ [[ '' == \e\n\a\b\l\e ]]
+ sysctl -p
+ [[ -n '' ]]
+ apt_update
+ PID_APT=25526
+ whiptail_check
+ apt-get -q update
+ command -v whiptail
+ load_create_config
+ '[' -f /etc/openhabian.conf ']'
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-06-17_22:32:16_BST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2020-06-17_22:32:16_BST [openHABian] Loading configuration file '/etc/openhabian.conf'... + source /etc/openhabian.conf
++ hostname=openHABianPi
++ username=openhabian
++ timeserver=0.pool.ntp.org
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ wifi_ssid=
++ wifi_psk=
++ debugmode=maximum
+ echo OK
OK
+ ua-netinst_check
+ '[' -f /boot/config-reinstall.txt ']'
+ openhabian_console_check
++ tput cols
+ '[' 153 -lt 120 ']'
+ openhabian_update_check
+ local branch
+ local 'introtext=Additions, improvements or fixes were added to the openHABian configuration tool. Would you like to update now and benefit from them? The update will not automatically apply changes to your system.\n\nUpdating is recommended.'
+ FAILED=0
++ timestamp
++ date +%F_%T_%Z
++ get_git_revision
++ local branch shorthash revcount latesttag
+++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
++ branch=stable
+++ git -C /opt/openhabian log --pretty=format:%h -n 1
++ shorthash=e01719a
+++ git -C /opt/openhabian log --oneline
+++ wc -l
++ revcount=644
+++ git -C /opt/openhabian describe --tags --abbrev=0
++ latesttag=v1.5
++ echo '[stable]v1.5-644(e01719a)'
+ echo '2020-06-17_22:32:16_BST [openHABian] openHABian configuration tool version: [stable]v1.5-644(e01719a)'
2020-06-17_22:32:16_BST [openHABian] openHABian configuration tool version: [stable]v1.5-644(e01719a)
+ branch=HEAD
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-06-17_22:32:16_BST [openHABian] Checking for changes in origin branch HEAD ... '
2020-06-17_22:32:16_BST [openHABian] Checking for changes in origin branch HEAD ... + git -C /opt/openhabian config user.email openhabian@openHABian
+ git -C /opt/openhabian config user.name openhabian
+ git -C /opt/openhabian fetch --quiet origin
++ git -C /opt/openhabian rev-parse HEAD
++ git -C /opt/openhabian rev-parse '@{u}'
+ '[' e01719a139eddfe14c9232e53811e481b2002e13 == e01719a139eddfe14c9232e53811e481b2002e13 ']'
+ echo OK
OK
+ openhabian_announcements
+ local newsfile=/opt/openhabian/NEWS.md
+ local readnews=/opt/openhabian/docs/LASTNEWS.md
+ diff -q /opt/openhabian/NEWS.md /opt/openhabian/docs/LASTNEWS.md
++ cat /opt/openhabian/NEWS.md
+ whiptail --title 'openHABian breaking NEWS' --yes-button 'I have read this' --no-button 'keep displaying' --defaultno --yesno --scrolltext 'This is the new announcement page to pop up whenever you start openhabian-config and there'\''s significant news we would like to share with you. Hit tab to unselect buttons and scroll through the text using UP/DOWN/PG UP/PG DOWN.
When you choose '\''I have read this'\'' the message will not appear on startup anymore.
All announcements will be stored in /opt/openhabian/docs/NEWSLOG for you to lookup.
## June 10, 2020
### new parameters in `openhabian.conf`
See `/etc/openhabian.conf` for a number of new parameters such as the useful `debugmode`, a fake hardware mode, to disable ipv6 and the ability to update from some repository other than the default `master` and `stable`.
In case you are not aware, there is a Debug Guide in the `docs/` directory.
### New Java options
Preparing for openHAB 3, new options for the JDK that runs openHAB are now available:
- Java Zulu 8 32-Bit OpenJDK (default on ARM based platforms)
- Java Zulu 8 64-Bit OpenJDK (default on x86 based platforms)
- Java Zulu 11 32-Bit OpenJDK (beta testing)
- Java Zulu 11 64-Bit OpenJDK (beta testing)
- AdoptOpenJDK 11 OpenJDK (beta replacement for Zulu)
openHAB 3 will be Java 11 only. 2.5.X is supposed to work on both, Java 8 and Java 11.
Running the current openHAB 2.X on Java 11 however has not been tested on a wide scale.
Please be aware that there is a small number of known issues in this: v1 bindings may or may not work.
Please participate in beta testing to help create a smooth transition user experience for all of us.
See [announcement thread](https://community.openhab.org/t/Java-testdrive/99827) on the community forum.
## May 31, 2020
### Stable branch
Introducing a new versioning scheme to openHABian. Please welcome `stable` branch.
Similar to openHAB where there'\''s releases and snapshots, you will from now on be using the stable branch. It'\''s the equivalent of an openHAB release.
We will keep providing new changes to the master branch first as soon as we make them available, just like we have been doing in the past. If you want to keep living on the edge, want to make use of new features fast or volunteer to help a little in advancing openHABian, you can choose to switch back to the master branch.
Anybody else will benefit from less frequent but well better tested updates to happen to the stable branch in batches, whenever the poor daring people to use `master` have reported their trust in these changes to work flawlessly.
You can switch branches at any time using the menu option 01.
### Supported hardware and Operating Systems
openHABian now fully supports all Raspberry Pi SBCs with our fast-start image. As an add-on package, it is supposed to run on all Debian based OSs.
Check the [README](#README.md) to see what "supported" actually means and what you can do if you want to run on other HW or OS.
### ZRAM per default
Swap, logs and persistence files are now put into ZRAM per default.
See [ZRAM status thread](https://community.openhab.org/t/zram-status/80996) for more information.' 24 90
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-06-17_22:32:22_BST [openHABian] Switching to branch ... '
2020-06-17_22:32:22_BST [openHABian] Switching to branch ... + git -C /opt/openhabian checkout --quiet ''
warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths
+ echo OK
OK
+ show_main_menu
+++ get_git_revision
+++ local branch shorthash revcount latesttag
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=stable
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=e01719a
++++ git -C /opt/openhabian log --oneline
++++ wc -l
+++ revcount=644
++++ git -C /opt/openhabian describe --tags --abbrev=0
+++ latesttag=v1.5
+++ echo '[stable]v1.5-644(e01719a)'
++ whiptail --title 'Welcome to the openHABian Configuration Tool [stable]v1.5-644(e01719a)' --menu 'Setup Options' 20 116 13 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Upgrade all installed software packages (incl. openHAB) to their latest version' '03 | openHAB Stable' 'Install or upgrade to the latest stable release of openHAB 2' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►' '' '' '60 | Manual/Fresh Setup' 'Go through all openHABian setup steps manually ►'
+ choice='50 | Backup/Restore'
+ RET=0
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 255 ']'
+ [[ 50 | Backup/Restore == '' ]]
+ [[ 50 | Backup/Restore == \0\0* ]]
+ [[ 50 | Backup/Restore == \0\1* ]]
+ [[ 50 | Backup/Restore == \0\2* ]]
+ [[ 50 | Backup/Restore == \0\3* ]]
+ [[ 50 | Backup/Restore == \1\0* ]]
+ [[ 50 | Backup/Restore == \2\0* ]]
+ [[ 50 | Backup/Restore == \3\0* ]]
+ [[ 50 | Backup/Restore == \4\0* ]]
+ [[ 50 | Backup/Restore == \5\0* ]]
+++ get_git_revision
+++ local branch shorthash revcount latesttag
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=stable
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=e01719a
++++ git -C /opt/openhabian log --oneline
++++ wc -l
+++ revcount=644
++++ git -C /opt/openhabian describe --tags --abbrev=0
+++ latesttag=v1.5
+++ echo '[stable]v1.5-644(e01719a)'
++ whiptail --title 'Welcome to the openHABian Configuration Tool [stable]v1.5-644(e01719a)' --menu 'Setup Options' 10 116 3 --cancel-button Back --ok-button Execute '50 | Backup openHAB config' 'Backup the current active openHAB configuration' '51 | Restore an openHAB config' 'Restore a previous openHAB configuration from backup' '52 | Amanda System Backup' 'Set up Amanda to comprehensively backup your complete openHABian box'
+ choice2='52 | Amanda System Backup'
+ '[' 0 -eq 1 ']'
+ '[' 1 -eq 255 ']'
+ case "$choice2" in
+ wait_for_apt_to_finish_update
++ timestamp
++ date +%F_%T_%Z
+ echo '2020-06-17_22:32:29_BST [openHABian] Updating Linux package information ... '
2020-06-17_22:32:29_BST [openHABian] Updating Linux package information ...
+ '[' '!' -v PID_APT ']'
+ wait -f 25526
+ '[' 2 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n "50 | Backup/Restore"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md how to proceed.' 12 70
+ return 0
+ true
+ show_main_menu
+++ get_git_revision
+++ local branch shorthash revcount latesttag
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=stable
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=e01719a
++++ git -C /opt/openhabian log --oneline
++++ wc -l
+++ revcount=644
++++ git -C /opt/openhabian describe --tags --abbrev=0
+++ latesttag=v1.5
+++ echo '[stable]v1.5-644(e01719a)'
++ whiptail --title 'Welcome to the openHABian Configuration Tool [stable]v1.5-644(e01719a)' --menu 'Setup Options' 20 116 13 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Upgrade all installed software packages (incl. openHAB) to their latest version' '03 | openHAB Stable' 'Install or upgrade to the latest stable release of openHAB 2' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►' '' '' '60 | Manual/Fresh Setup' 'Go through all openHABian setup steps manually ►'
+ choice=
+ RET=1
+ '[' 1 -eq 1 ']'
+ return 255
+ system_check_default_password
+ introtext='The default password was detected on your system! That'\''s a serious security concern. Others or malicious programs in your subnet are able to gain root access!
\nPlease set a strong password by typing the command '\''passwd'\''!'
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-06-17_22:32:37_BST [openHABian] Checking for default openHABian username:password combination... '
2020-06-17_22:32:37_BST [openHABian] Checking for default openHABian username:password combination... + is_pi
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ [[ '' == \p\i\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ [[ '' == \p\i\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ id -u pi
+ is_pi
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ [[ '' == \p\i\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ [[ '' == \p\i\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ USERNAME=openhabian
+ PASSWORD=openhabian
+ id -u openhabian
++ grep -w openhabian /etc/shadow
++ cut -d: -f2
+ ORIGPASS='$6$7Zrvvlba$FhYpoPLK2hWez8/Op7NifyrbmStiADKTQrDY1vtdTr9.n4/5nkVxV.gDz7B9Zqtw0vBwFe/.JIrjJiUScBMfa/'
++ echo '$6$7Zrvvlba$FhYpoPLK2hWez8/Op7NifyrbmStiADKTQrDY1vtdTr9.n4/5nkVxV.gDz7B9Zqtw0vBwFe/.JIrjJiUScBMfa/'
++ cut '-d$' -f2
+ ALGO=6
++ echo '$6$7Zrvvlba$FhYpoPLK2hWez8/Op7NifyrbmStiADKTQrDY1vtdTr9.n4/5nkVxV.gDz7B9Zqtw0vBwFe/.JIrjJiUScBMfa/'
++ cut '-d$' -f3
+ SALT=7Zrvvlba
+ export PASSWORD ALGO SALT
++ perl -le 'print crypt("$ENV{PASSWORD}","\$$ENV{ALGO}\$$ENV{SALT}\$")'
+ GENPASS='$6$7Zrvvlba$Xrutb0nhE13Ocde.N/0GssjBA7R8dGvk5VyCRZMJSS/8VKVDf1yEcXq7YXntuweq5TLnW4gdS8LPVwHM9ZojP.'
+ '[' '$6$7Zrvvlba$Xrutb0nhE13Ocde.N/0GssjBA7R8dGvk5VyCRZMJSS/8VKVDf1yEcXq7YXntuweq5TLnW4gdS8LPVwHM9ZojP.' == '$6$7Zrvvlba$FhYpoPLK2hWez8/Op7NifyrbmStiADKTQrDY1vtdTr9.n4/5nkVxV.gDz7B9Zqtw0vBwFe/.JIrjJiUScBMfa/' ']'
+ echo OK
OK
++ timestamp
++ date +%F_%T_%Z
+ echo -e '2020-06-17_22:32:37_BST [openHABian] We hope you got what you came for! See you again soon ;)'
2020-06-17_22:32:37_BST [openHABian] We hope you got what you came for! See you again soon ;)
+ cd /etc/amanda/openhab-dir
Change to master branch and retry.
Yes. Now works. Thank you.
Hi. Sorry to re-open an old post but i think this is a valid continuation.
I am now setting up an oh3 installation on a rpi4 and will migrate everything across from my exising openhab2 rpi3 instance. I am ready to go but would first like to set up amanda to my nas. i have this running successfully on my oh2 instance.
I am running into the same issue as above but cannot find a way to resolve it.
I have mounted a share to the nas using fstab:
fstab entry:
192.168.1.200:/nfs/Public /mnt/nas nfs defaults 0 0
[22:13:45] openhabian@openHABianDevice:/mnt/nas$ ls -l
total 188
drwxrwxrwx+ 2 501 openhabian 4096 Jan 11 03:00 amanda-backups
drwxrwxrwx+ 2 501 openhabian 4096 Jan 11 21:58 amanda-backups-oh3
however the openhabian-config installation fails and the log shows it is tripping up when it tries to do:
[22:13:49] openhabian@openHABianDevice:/mnt/nas$ sudo chown -R backup:backup /mnt/nas/amanda-backups-oh3
chown: changing ownership of '/mnt/nas/amanda-backups-oh3': Operation not permitted
I’ve looked through quite a few posts but can’t quite seem to find where i’ve gone wrong.
Can anyone help?
Hi. I have now successfully tested a workaround which was:
openhabian@openHABianDevice:/etc/amanda/openhab-dir $ sudo nano amanda.conf
to replace the pointer folder that i want the amanda dump to be written to.
tpchanger "chg-disk:/mnt/nas/amanda-backups-oh3/slots"
I created the slots folders manually on the nas:
I was able run amdump (as user backup) and then amfetchdump (again as user backup) to restore an image into another folder on the nas:
To show the dump date code:
[21:28:07] backup@openHABianDevice:~$ amtape openhab-dir show
scanning all 15 slots in changer:
slot 1: date 20210112205304 label openHABian-openhab-dir-004
slot 2: unlabeled volume
slot 3: unlabeled volume
slot 4: unlabeled volume
slot 5: unlabeled volume
slot 6: unlabeled volume
slot 7: unlabeled volume
slot 8: unlabeled volume
slot 9: unlabeled volume
slot 10: unlabeled volume
slot 11: unlabeled volume
slot 12: unlabeled volume
slot 13: unlabeled volume
slot 14: unlabeled volume
slot 15: unlabeled volume
and then:
[21:36:19] backup@openHABianDevice:~$ amfetchdump -p openhab-dir openhabiandevice /dev/mmcblk0 20210112205304 > /mnt/nas/openhab_restore/openhabianpi-image-20210112.img
Note: there is an error now in the openhab amanda documentation at:
You need to replace openhabianpi with openhabiandevice as the host name.
No, the name is variable anyway.
Agreed but the documentation perhaps could be amended with a rider that where it uses “openhabianpi” this should be the hostname set up in openhabian.conf?
I am now having the same issue as above where t states there was an error during setup. Currently on 3.0.0-1 and using the Main Branch. I’m not sure how to access the logs though?
Set debugmode=maximum
in /etc/openhabian.conf
I believe will output all the data in the command line which can be seen once you exit the config screen.
debugmode was already set to maximum, saved and exited the file but didnt see any logs?
Sorry for the delay replying. I am no expert to be honest. But once you have closed the openhab-config tool you should see the various bits of script that the tool has output in the command line interface. Is that not the case?
Unfortunately no it’s doesn’t. I have managed to do a manual backup and will keep doing so every time I make big changes until I can sort this out.
It does. Configure your terminal to record it. Read the debug guide.
what terminal application are you using?
Putty
Same here. I think the debug guide may be out of date in that putty no longer has a “lines of scroll back” option (at least my version 0.73 doesn’t). However i think this value must be set to some very high number by default so there should be nothing to do there.
If I launch openhabian-config and then exit it without doing anything else I see these lines in the CLI:
openhabian@openHABianDevice:~ $ sudo openhabian-config
[sudo] password for openhabian:
2021-03-10_12:10:44_GMT [openHABian] Checking for root privileges... OK
2021-03-10_12:10:44_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-03-10_12:10:44_GMT [openHABian] openHABian configuration tool version: [openHAB3]patchday-20210118-1208(75187cd)
2021-03-10_12:10:45_GMT [openHABian] Checking for changes in origin branch openHAB3... OK
2021-03-10_12:10:48_GMT [openHABian] Switching to branch openHAB3... OK
2021-03-10_12:11:41_GMT [openHABian] Checking for default openHABian username:password combination... OK
2021-03-10_12:11:41_GMT [openHABian] We hope you got what you came for! See you again soon ;)
Do you at least see something like this?