pub struct BackupConfig {
pub sources: Vec<PathBuf>,
pub folder: String,
pub exclude: Vec<String>,
pub interval: Option<String>,
pub upload_threads: Option<usize>,
pub read_threads: Option<usize>,
pub live_photo_videos: Option<LivePhotoVideos>,
}Expand description
smugmug-cli backup: what to back up, where to, and how often.
Fields§
§sources: Vec<PathBuf>Directories to back up.
folder: StringSmugMug folder the year/month/day albums go in. Created private.
exclude: Vec<String>Paths to leave out, in .gitignore syntax, relative to each source (e.g. “old_backup/”, “**/Thumbs.db”).
interval: Option<String>Time between the end of one run and the start of the next (e.g.
“6h”, “30m”, “1d”). Without it, backup runs once.
upload_threads: Option<usize>Overrides upload.threads for backups.
read_threads: Option<usize>Overrides upload.read_threads for backups.
live_photo_videos: Option<LivePhotoVideos>Overrides upload.live_photo_videos for backups.
Trait Implementations§
Source§impl Clone for BackupConfig
impl Clone for BackupConfig
Source§impl Debug for BackupConfig
impl Debug for BackupConfig
Source§impl Default for BackupConfig
impl Default for BackupConfig
Source§impl<'de> Deserialize<'de> for BackupConfigwhere
BackupConfig: Default,
impl<'de> Deserialize<'de> for BackupConfigwhere
BackupConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackupConfig
impl RefUnwindSafe for BackupConfig
impl Send for BackupConfig
impl Sync for BackupConfig
impl Unpin for BackupConfig
impl UnsafeUnpin for BackupConfig
impl UnwindSafe for BackupConfig
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, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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