A simple commandline utility to copy latest versions of files to a user-defined location.
- If names of directories and files in the source directory tree only contain ANSI characters
it also works on Windows.
- A structure of source directories is preserved at the destination.
- If the destination root does not exist, its parent directory must be existing.
- A log file (named last.log) is saved next to the executable file on each run and includes all source and destination
paths as well as error messages if any errors have occurred.
Prerequisites:
- cmake (v3.13+)
On Linux/UNIX:
- cd to the source root
- Execute:
mkdir build
cd build
cmake ..
make
Note: If you have built cmake from the source use /usr/local/bin/cmake ..
instead of cmake ..
On Windows (using MinGW):
- cd to the source root
- Execute:
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
mingw32-make
... or use the Build option in your IDE e.g. CLion
On Linux/UNIX:
./backup <source_root_directory> <destination_root_directory>
On Windows (using the PowerShell terminal):
.\backup.exe <source_root_directory> <destination_root_directory>