Releases: mirkobrombin/DaBaDee
Releases · mirkobrombin/DaBaDee
v0.6.0
Changelog
- Implemented global storage path configuration:
- Uses
/home/<user>/.dabadee/Storage
if launched in a sub-directory of a non-root user. - Uses
/opt/.dabadee/Storage
if launched as root from any other path.
- Uses
- Updated command syntax for
dedup
andcp
commands:- Added
--storage
flag to specify the storage directory. - Added
--workers
flag to specify the number of workers.
- Added
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Changelog
- Implemented a new
destDir
inNewDedupProcessor
to support deduplication-based copying. - Implemented a new
--dest/-d
flag in thededup
command to specify the destination directory for deduplicated files. - Implemented a new
--append/-a
flag in thecp
command to allow appending directory contents to the destination with deduplication. - Implemented verbose mode to provide detailed logging information. This can be enabled by passing the
--verbose/-v
flag in the command line interface (CLI) or by setting theverbose
parameter totrue
when using the library.
Full Changelog: v0.3...v0.5.0
v0.4.0
Just a new version to satisfy gopkg.
v0.3
Verbose mode is currently used only to suppress minor issues, like failing in process missing files during the deduplication process.
Full Changelog: v0.2...v0.3
v0.2
Prior to this, the directive to keep metadata was passed in both storage creation and processor, increasing the possibility of conflicts. Now to keep metadata, storage options directive is used everywhere:
package main
import (
"github.com/mirkobrombin/dabadee/pkg/dabadee"
"github.com/mirkobrombin/dabadee/pkg/hash"
"github.com/mirkobrombin/dabadee/pkg/processor"
"github.com/mirkobrombin/dabadee/pkg/storage"
)
func main() {
s := storage.NewStorage(storage.StorageOptions{
Root: "/path/to/storage",
WithMetadata: true,
})
h := hash.NewSHA256Generator()
p := processor.NewDedupProcessor("/path/to/folder", s, h, 2)
d := dabadee.NewDaBaDee(p)
err := d.Run()
if err != nil {
panic(err)
}
}
Full Changelog: v0.1...v0.2
v0.1
First release.
dabadee --help
Usage:
dabadee [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
cp Copy a file and deduplicate it in storage
dedup Deduplicate files in a directory
find-links Find all hard links to the specified file
help Help about any command
remove-orphans Remove all orphaned files from the storage
rm Remove a file and its link from storage
Flags:
-h, --help help for dabadee
Use "dabadee [command] --help" for more information about a command.
Continuous Build
continuous ci: release CI