add comments to sync_files function
This commit is contained in:
parent
26299ab999
commit
58ca4c3736
1 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,9 @@ fn get_current_hostname() -> Option<String> {
|
|||
}
|
||||
|
||||
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",
|
||||
|
|
Reference in a new issue