Skip to content

Releases: jxsl13/backupfs

v0.14.0 - improve Windows compatibility

12 Feb 13:04
685b439
Compare
Choose a tag to compare
  • This release introduces some small breaking changes where the creation of PrefixFS and BackupFS requires an additional error check.
  • These error, currently, only occur when paths are passed that contain a Windows volume. Instead, you must wrap your filesystem in a VolumeFS containing the correct Volume name e.g. C: and then pass the absolute path without the volume name to either of the PrefixFS or HiddenFS constructor functions.

What's Changed

  • prevent incorrect usage of PrefixFS & HiddenFS, do not allow passing … by @jxsl13 in #47

Full Changelog: v0.13.4...v0.14.0

v0.13.4 - fix MkdirAll & RemoveAll

11 Feb 16:27
d503ea3
Compare
Choose a tag to compare
  • MkdirAll did not correctly backup/keep track of sub paths before creating directories
  • RemoveAll behaved differently from the standard library. It did return an error in case that the target file path was not found. Now it does not an error anymore. Nothing found = nothing to do.

What's Changed

Full Changelog: v0.13.3...v0.13.4

v0.13.3 - bugfixes

22 Oct 17:59
93d2a61
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.2...v0.13.3

v0.13.2 - exclude root directories from being modified

30 Sep 13:16
46fde3a
Compare
Choose a tag to compare

What's Changed

  • do not touch root directories when copying directories by @jxsl13 in #41

Full Changelog: v0.13.1...v0.13.2

v0.13.1 - minor bug fixes

12 Aug 18:09
f461d97
Compare
Choose a tag to compare

What's Changed

  • fix json parsing of gid/uid by @jxsl13 in #39
  • add some missing mutex locks

Full Changelog: v0.13.0...v0.13.1

v0.13.0 - symlink bugfixes & refactoring

09 Aug 15:37
02e3be4
Compare
Choose a tag to compare

summary

This release refactors and improves code complexity by decreasing it (unbelievable, I know)

It removes the Windows specific option that, by default, prevented backupfs from using absolute windows (C:/a/b/c) paths.
This is now allowed by default and the option has been removed. It was a leftover from the afero migration.

Another problem that this refactoring and bugfix release targets is the problem of backing up files that are being accessed through a sym-linked directory, e.g. /lib/systemd/system/test.txt which in fact is /usr/lib/systemd/system/test.txt where /lib -> /usr/lib is a symlink in the system path.

incompatible changes

WithVolumePaths: removed - enabled by default

compatible changes

LessFilePathSeparators: added - allows to define custom sorting for non-string types outside of this library

v0.12.0 - make sort types public & improve error handling in Rollback

17 Jul 11:21
ce98def
Compare
Choose a tag to compare
  • bugfix sorting
  • improve rollback error handling/messages
  • make sort types public

compatible changes

ByLeastFilePathSeparators: added
ByMostFilePathSeparators: added

v0.11.2 - minor bugfixes

16 Jul 13:00
4ef7787
Compare
Choose a tag to compare

v0.11.1

10 Jul 10:06
2753fba
Compare
Choose a tag to compare

What's Changed

  • cleanup & remove prefixFile from public api by @jxsl13 in #34
  • use option pattern with variadic args for constructors by @jxsl13 in #35

Full Changelog: v0.10.0...v0.11.1

github.com/jxsl13/backupfs

incompatible changes

(*BackupFS).GetBackupFS renamed to (*BackupFS).BackupFS
(*BackupFS).GetBaseFS renamed (*BackupFS).BaseFS
NewBackupFS changed from func(FS, FS) *BackupFS to func(FS, FS, ...BackupFSOption) *BackupFS
NewBackupFSWithVolume: removed
PrefixFile: removed

compatible changes

BackupFSOption: added
New: added
NewWithFS: added
WithVolumePaths: added

v0.10.0

09 Jul 18:33
9518f85
Compare
Choose a tag to compare

incompatible changes

Errors

  • ErrBackupFsNoSymlink: removed
  • ErrBaseFsNoSymlink: removed
  • ErrNoSymlink: removed

Interfaces

  • File: changed from github.com/spf13/afero.File to File
  • LinkOwner: removed

Structs

  • BackupFs: renamed to BackupFS
  • HiddenFs: renamed to HiddenFS
  • HiddenFsFile: removed
  • PrefixFs: renamed to PrefixFS
  • VolumeFs: renamed to VolumeFS

Functions

  • NewBackupFs: renamed to NewBackupFS
  • NewBackupFsWithVolume: renamed to NewBackupFSWithVolume
  • NewHiddenFs: renamed to NewHiddenFS
  • NewPrefixFs: renamed to NewPrefixFS
  • NewVolumeFs: renamed to NewVolumeFS

compatible changes

Interfaces

  • FS: added
  • Symlinker: added

Structs

  • OSFS: added

Functions

IterateDirTree: added
NewOSFS: added
TempDir: added
Walk: added

What's Changed

New Contributors

Full Changelog: v0.9.4...v0.10.0