resync-mode newer: Dropbox collab, local is not SoT
This commit is contained in:
@@ -179,6 +179,7 @@ func bisyncArgs(cfg Config, extra ...string) []string {
|
||||
"--max-lock", "2h",
|
||||
"--recover",
|
||||
"--conflict-resolve", "none",
|
||||
"--resync-mode", "newer",
|
||||
}
|
||||
return append(args, extra...)
|
||||
}
|
||||
@@ -215,13 +216,13 @@ func runOnce(cfg Config, acceptResync bool) error {
|
||||
if !listingsExist(cfg) {
|
||||
// First use only: never auto --resync after a failed normal run.
|
||||
if !acceptResync {
|
||||
notify("rclone-bisync", "No listings — dry-run --resync")
|
||||
notify("rclone-bisync", "No listings — dry-run --resync --resync-mode newer")
|
||||
if err := runRclone(cfg, "--dry-run", "--resync"); err != nil {
|
||||
notify("rclone-bisync dry-run failed", err.Error())
|
||||
return err
|
||||
}
|
||||
}
|
||||
notify("rclone-bisync", "Live --resync (first listings)")
|
||||
notify("rclone-bisync", "Live --resync --resync-mode newer (first listings)")
|
||||
if err := runRclone(cfg, "--resync"); err != nil {
|
||||
notify("rclone-bisync resync failed", err.Error())
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user