Skip to main content

Module backup

Module backup 

Source
Expand description

smugmug-cli backup: a dated upload (see crate::dated) of the configured directories, repeated every interval, for running unattended (e.g. in a container).

Each run after the first only stats files it has seen, so a run over an unchanged library costs a directory walk and no SmugMug requests. The next run starts interval after the previous one ends, so runs never overlap; the cache database’s lock also keeps a second process out.

Functions§

parse_interval
“90s”, “30m”, “6h”, “1d”, “1h30m”.
run