Skip to content

Commit

Permalink
Merge pull request #51 from ThomasWaldmann/add-rclone-urls
Browse files Browse the repository at this point in the history
get_backend: add rclone URL support
  • Loading branch information
ThomasWaldmann authored Sep 22, 2024
2 parents 7bd835e + 393101a commit fd152fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/borgstore/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from .backends._base import ItemInfo, BackendBase
from .backends.errors import ObjectNotFound, NoBackendGiven, BackendURLInvalid # noqa
from .backends.posixfs import get_file_backend
from .backends.rclone import get_rclone_backend
from .backends.sftp import get_sftp_backend
from .constants import DEL_SUFFIX

Expand All @@ -33,6 +34,10 @@ def get_backend(url):
if backend is not None:
return backend

backend = get_rclone_backend(url)
if backend is not None:
return backend


class Store:
def __init__(self, url: Optional[str] = None, backend: Optional[BackendBase] = None, levels: Optional[dict] = None):
Expand Down

0 comments on commit fd152fb

Please sign in to comment.