/backup

Program to compare and update two directory structures. Intended function is to compare a local directory strucure with a hard drive/usb directory structure and update outdated files on the hard drive. Creates a unique thread to update each sub directory branching from home directory (configurable in macros.h)

Primary LanguageC

Backup

The program will only inspect directories specified in the .paths/paths.txt file. To change the root directory of the local and backup, change LOCAL_START and USB_START in macros.h.

Only tested on macOS Mojave 10.14.

Build/Run instructions

To build, type 'make' in root directory. To run, type './backup'.

Options

Add path to be tracked

./backup -a <full_path>

Remove path from tracked directories

Note: Does not remove the directory on the remote directory

./backup -r <full_path>