Skip to content

Latest commit

 

History

History

pcos

The users and system backup suite

This shell scripts running on the laptop/PC provide backup and restore capabilities by SSH via USB.

Thanks to this suite, it starts to become feasible to play with the root filesystem because it can be restored via a previous backup in a minute.

However, in some cases a simple rollback of a previous tarball backup cannot solve the issue (e.g.: into a service.d folder a faulty.conf, which is new and therefore will not be overwritten nor deleted). This limitation highlights the need for a recovery image that can provide an integral root filesystem restore from a full previous backup archive.

The SSH connetivity funtions

This script contains a variety of functions that aim to automatise as many cases as possible about SSH connectivity with the smartphone

The suite has been recently updated to support a smoothless interaction with the new recovery image which allows to flash the partitions via SSH or do backup and restore of the rootfs filesystem and home users folders.

  • tfish [ command ] - to use recovery telnet via USB on its default IPv4
  • rfish [ command ] - to use recovery SSH via USB on its default IPv4
  • ufish [ command ] - to use SSH via USB connection on its default IPv4
  • wfish [ command ] - to use SSH via WiFi connection on its default IPv4
  • afish [ command ] - to use the fast route IPv4 for SSH, updates IPv4 default
  • sfish [ command ] - to use the previous route for SSH or it finds the fastest

scp support:

  • s / afish [ scp ] -u $remote-dest-path $local-files - secure copy in upload
  • s / afish [ scp ] -d $local-dest-path $remote-files - secure copy in download

extras:

  • afish getip - set the fastest route IPv4 for establishing the SSH connection
  • ufish tether - enable the tethering via USB when SFOS is in developer mode

The USB fastboot issues fixer

Well, the title is a little brave because this script does not solve all the problem that fastboot shows with the new USB hardware

However, it contains interesting ways of doing things that will be nice to see in a little more elaborate approch: detach, fastboot, re-attach.