mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-07 02:50:39 +00:00
remove duplicated code and make the forget function compatible with the new docker mounts options
This commit is contained in:
@@ -15,7 +15,8 @@ import {
|
||||
MeasureDuration,
|
||||
fill,
|
||||
decodeLocationFromPrefix,
|
||||
hash, checkIfDockerVolumeExistsOrFail,
|
||||
checkIfDockerVolumeExistsOrFail,
|
||||
getPathFromVolume,
|
||||
} from './utils'
|
||||
|
||||
|
||||
@@ -33,7 +34,7 @@ export const backupFromFilesystem = (from: string, location: Location, backend:
|
||||
}
|
||||
|
||||
export const backupFromVolume = (volume: string, location: Location, backend: Backend) => {
|
||||
const tmp = pathRelativeToConfigFile(hash(volume))
|
||||
const tmp = getPathFromVolume(volume)
|
||||
try {
|
||||
mkdirSync(tmp)
|
||||
checkIfDockerVolumeExistsOrFail(volume)
|
||||
|
Reference in New Issue
Block a user