errlog "no device was mounted"
}
-remote_backup_dir()
-{
- infolog "remove backup path $backup_path"
- rmdir "$backup_path" \
- || errlog "clound not remote $backup_path" \
- || return $?
-}
-
umount_backup()
{
|| errlog "could not unmount $backup_path" \
|| return $?
+ infolog "remove backup path $backup_path"
+ rmdir "$backup_path" \
+ || errlog "clound not remote $backup_path" \
+ || return $?
+
local volume=$(cat "config.yaml" \
| yq --raw-output ".backup_volume")
[ "$volume" != "null" ] \