I’m looking for a linux program that can mirror a directory to another drive and move a subdirectory in the mirror.

  • IsoKiero@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    lsyncd does just this. It’s intended use is to sync directories between systems over slow(ish) uplink, but it can work locally as well. It takes some fiddling to set up, but once set up it just does it’s thing seamlessly at the background. However if you’re just looking for a backup solution I’d might look for something else, like a plain rsync script.

    • Nine@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      This is the best answer. I use it regularly to keep hundreds of TB in sync across nodes. Works extremely well and is pretty much hands off once setup.

  • foggy@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I use RealTimeSync.

    It just… Works. I love it. It’s free.

    There are plenty of features that could effectively let you do what you want.

    Mine is set to sync my server with a backup whenever my main PC is idle for 20 mins. Once it determines how to sync, it lets me review before syncing.

  • randomname01@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Why not exclude the folder you want to move from the initial sync, and sync that folder separately to the final location?

  • johntash@eviltoast.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Restic, kopia, and Borg are all pretty good backup tools with deduplication built in, so they might be a good option if you’re doing this for backup purposes?