6Code maintenance

6.1Poor man’s backup

There are many great backup programs, but you can actually get far with the free stuff already on your system. The modern cloud-based backup programs can—in my experience—be immature, dictating unreasonable requirements to your disk-structure. An older trusted solution is given here. On Windows, “robocopy” is very persistent in its attempts to copy your data. The following text in a BAT file (as a single line) copies “MyProject” to a Google drive—it could also be a network drive, etc.

Listing 6.1: Poor mans backup using Robocopy

Table 6.1 describes the options used—there are more.

Table 6.1: Robocopy parameters. ...

Get Embedded Software for the IoT now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.