diff --git a/src/main.rs b/src/main.rs index d3ab868..166c1dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -113,6 +113,9 @@ fn get_current_hostname() -> Option { } fn sync_files(config: &Config, from: &str, to: &str) { + // send first batch of files based on size alone + // works for media, since that doesn't change + // TODO: exclude database files entirely at this stage Command::new("rsync") .args( ["-rz", @@ -128,6 +131,9 @@ fn sync_files(config: &Config, from: &str, to: &str) { .status() .expect("Failed to sync media files."); + // now this only includes database files + // this explicitly ignores size, as two databases can be the same "size" but may have different + // contents? i think that's why i wrote this lol Command::new("rsync") .args( ["-rzcv",