Skip to content

Releases: jxsl13/backupfs

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

v0.9.4 - PrefixFs - fix prefixing Windows path

12 Sep 13:48
7f054ef
Compare
Choose a tag to compare

This release tackles the problem that occurs when you prefix a Windows path C:\H\I\J with another Windows path C:\A\B\

Previously you were not able to do that because you'd get the following file path which is invalid: C:\A\B\C:\H\I\J
This update fixes that behavior in a way that you are now getting such a path instead: C:\A\B\C\H\I\J
It's now misisng the : in the middle.

allow windows volumes

30 Jan 16:22
Compare
Choose a tag to compare
v0.9.2

allow a backupfs with fully qualified windows volumes.