PaulB
(Paul Bendall)
4
@glyn.hudson and @ian thanks for your help and advice. I think I’ve worked out how to do it using the new WSL (Windows Subsystem for Linux) implementation on Windows 10 to give Ubuntu Bash and interoperability.
For the benefit of others (and possible myself in the future)
Install WSL using this guide - Install WSL | Microsoft Docs
From Ubuntu Bash on ssh to the emonpi assuming default username and emonpi is resolvable on your LAN
ssh pi@emonpi
Enter user pi password (default emonpi2016)
change to backup directory
cd backup
Run the export script
./emoncms-export.sh
The export process takes some time to complete, first copying the files and the compressing. Once complete make a note of the export file location it should be something like /home/pi/data/emoncms-backup-2017-11-24.tar.gz
Exit the ssh session and return to the local machine
Use the Linux command scp to copy the export file from the emonPi to a local directory on the Windows 10 machine (note as we are effectively in a Linux shell case sensitive needs to be honoured even on the Windows filesystem)
scp pi@emonpi:/home/pi/data/emoncms-backup-2017-11-24.tar.gz /mnt/c/Temp
The command above uses scp in the bash interface to copy the export file from EmonPI to a folder (Temp) on the local Winodws 10 machine.
If all goes to plan then you have the export file on your Windows 10 machine ready to import on your next EmonPI
2 Likes