Releases: wilriker/duetbackup
Introduce Marker File
To prevent removing directories not managed by duetbackup
the tool will now create files named .duetbackup
in each directory it creates.
If for example the user will then initialize a git repository inside the local backup directory the .git
directory will be skipped when removing files that do not exist remote.
Fix issue with trailing slashes
This release fixes an issue where trailing (or possibly multiple successive) slashes can break the exclude feature.
Also in this release:
- Excluding is now more efficient by checking if a directory can be excluded as a whole instead of only excluding everything inside it
- Approximate download speeds have been added to the output
- Remove local directories recursively if they no longer exist remote and
-removeLocal
has been given
Fix local directories not being created
In previous versions the local directory had to exist unless the remote directory contained a sub-directory. This has been fixed.
Also the order is of handling changes is adjusted so that all files in a directory are processed before traversal into sub-directories. This way order of log statements makes much more sense.
Exclude feature
Exclude Feature
A new flag -exclude
has been introduced to exclude remote paths starting with the given value. This flag can be used multiple times.
Simple Example
./duetbackup -domain duet.localdomain -outDir "sys" -exclude "0:/sys/c"
will skip all files and folders in /sys
that start with "c" like config.g
or cancel.g
.
Multi Example
./duetbackup -domain duet.localdomain -outDir "sys" -exclude "0:/sys/c" -exclude "0:/sys/home
will skip all files and folders in /sys
that start with "c" like config.g
or cancel.g
as well as all files starting with "home" like homex.g
, homey.g
, homez.g
and homeall.g
.
Example Full Backup excluding GCode Files
./duetbackup -domain duet.localdomain -outDir "backup" -dirToBackup "0:/" -exclude "0:/gcodes"
Other Changes
- Some internal code simplifications
- Logging has been reformatted and reduced - the former amount of logging can be restored with the new flag
-verbose
Fix Time Zone Issues on Windows
Starting with this release also the filename of the binary is the same for all target platforms and all packages contain the LICENSE file.
Fix issues with zip files
v1.0.1 Use Transport with compression disabled to work around wrong headers …
First public release
v1.0.0 Add script to compile binaries for various platforms