To backup embedded systems, such as Android phone or OpenWRT router you can use tar command in conjunction with ssh. As I mentioned before this method is almost successful with Android. Now example with Gargoyle router - called device.
Similar to Android devices OpenWRT's tar doesn't support --totals option, so I've prepared wrapper (see below) because it is necessary for BackupPC.
You will need:
- Copy your generated earlier id_rsa.pub to /etc/dropbear/authorized_keys on device. To be able to login without password.
Login to device manually for the first time (to add it to known_hosts):
as you can see I logged as root to device named router. Alternatively you can manually edit known_hosts.
On device create file (ie. /root/tar_totals.bash) to emulate --totals option behaviour:
and of course make it executable:
(this what I can't do on Android)
Define host in BackupPC with settings:
as you can see only /etc is copied, and I use wrapper instead of tar command.
Now you can backup it. Of course in log you will have:
where you can see fake transfer summary.
Unfortunately on Android device you cannot set file as executable:
Add comment