Local Backup

Hey @Sorin how can I create a local backup of my vera

1 Like

I go to back up page in settings and click create backup, it is download to my download folder of my browser.

1 Like

local backups can be restored to any controller of the same model as the HW key is not encrypted or synced to the backup. for some eason i can only do cloud backups

1 Like

Hi Richie,

The backup files are not stored on your controller but in the cloud, so it’s tied to your account. To download a backup you’ll have to be logged in.

1 Like

i need to restore a backup to a new controller y old one died every time i try it doesn’t work i get an error message

Finally figured this out myself today.

Added the following to contrab via root:

23 0 * * * curl -o - -m 30 ‘http://127.0.0.1:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:ZWaveNetwork1&action=BackupDongle&DeviceNum=1’ 2>&1
5 0 * * * /usr/bin/backup.sh 2>&1

In terms of the backup script, created the following:

root@MiOS_XXXXXXXX:/data/backup/archives/XXXXXXXX# cat /usr/bin/backup.sh
#!/bin/sh

dest_path="/data/backup/archives"
backup_file="/tmp/Backup_download.tgz" # Generated by /usr/bin/backup-store.sh

serial="$(nvram get vera_serial)"
dest_path="${dest_path}/${serial}"
dest_file=“ha-gateway-backup_${serial}$(cat /etc/cmh/version)$(date +%F).tgz”

sh /usr/bin/backup-store.sh D
mkdir -p “${dest_path}”
mv “${backup_file}” “${dest_path}/${dest_file}”

Of course, in my example I am using a USB stick for Vera local logging and have reused the 2nd partition mounted at ‘/data’.

The above should give you sufficient insight as to how to trigger both (a) a zwave network backup and (b) Vera device backup. Should my device fail, I can take the USB stick out and rebuild on a different piece of hardware. Nothing is stored in the Vera cloud in this fashion, but of course be cognizant that even a local backup is susceptible to failure if not regularly offloaded and backed up :wink:

Reused some ideas and code snippets from @rigpapa 's work. So just wanted to edit this post and provide credit where due.

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules