pub struct BackupRunner;
Expand description
A struct for running the back-up task.
Implementations§
Source§impl BackupRunner
impl BackupRunner
Sourcepub fn run<O>(databases: &Path, output: &Path, options: O) -> Result<()>where
O: Into<BackupOptions>,
pub fn run<O>(databases: &Path, output: &Path, options: O) -> Result<()>where
O: Into<BackupOptions>,
Sourcepub fn backup(
databases: &Path,
output: &Path,
options: BackupOptions,
) -> Result<()>
pub fn backup( databases: &Path, output: &Path, options: BackupOptions, ) -> Result<()>
Backs-up macOS’s Apple Books databases to disk.
§Arguments
databases
- The directory to back-up.output
- The ouput directory.options
- The back-up options.
The output
strucutre is as follows:
[ouput-directory]
│
├── [YYYY-MM-DD-HHMMSS-VERSION]
│ │
│ ├── AEAnnotation
│ │ ├── AEAnnotation*.sqlite
│ │ └── ...
│ │
│ └─ BKLibrary
│ ├── BKLibrary*.sqlite
│ └── ...
│
├── [YYYY-MM-DD-HHMMSS-VERSION]
│ └── ...
└── ...
See ABMacos
for information
§Errors
Will return Err
if any IO errors are encountered.
Trait Implementations§
Source§impl Clone for BackupRunner
impl Clone for BackupRunner
Source§fn clone(&self) -> BackupRunner
fn clone(&self) -> BackupRunner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BackupRunner
impl Debug for BackupRunner
impl Copy for BackupRunner
Auto Trait Implementations§
impl Freeze for BackupRunner
impl RefUnwindSafe for BackupRunner
impl Send for BackupRunner
impl Sync for BackupRunner
impl Unpin for BackupRunner
impl UnwindSafe for BackupRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more