VictoriaMetrics/lib/backup/fsremote
Zakhar Bessarab f2df8ad480
vmbackupmanager: fixes for windows compatibility (#641)
* app/vmbackupmanager/storage: fix path join for windows

See: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4704

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* lib/backup: fixes for windows support

- close dir before running os.RemoveAll. Windows FS does not allow to delete directory before all handles will be closed.

- add path "normalization" for local FS to use the same format of paths for both *unix and Windows

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4704

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

---------

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
2023-08-11 02:56:11 -07:00
..
fsremote.go vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 02:56:11 -07:00
normilize_path_bsd.go vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 02:56:11 -07:00
normilize_path_darwin.go vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 02:56:11 -07:00
normilize_path_linux.go vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 02:56:11 -07:00
normilize_path_solaris.go vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 02:56:11 -07:00
normilize_path_windows.go vmbackupmanager: fixes for windows compatibility (#641) 2023-08-11 02:56:11 -07:00