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

  • redcalcium@lemmy.institute
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    As long as the backup system performs deduplication, it should be able to store the backup data efficiently even if the source files are constantly moved around or renamed.

    ZFS snapshots can perform deduplication. There is also ZBackup, which also has deduplication support.

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

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

  • IsoKiero@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years 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.