Skip to content

Instantly share code, notes, and snippets.

@ipatch
Created December 11, 2019 17:37
Show Gist options
  • Select an option

  • Save ipatch/20c4d62299eab7fd583f0852343660d2 to your computer and use it in GitHub Desktop.

Select an option

Save ipatch/20c4d62299eab7fd583f0852343660d2 to your computer and use it in GitHub Desktop.
rsync question

rsync question

use case

I'd like to backup a directory of large files to a locally attached external USB disk, and not remove any of the files that have been already been backed up (using rsync) to the destination disk. However, if the path to the file on the source disk has changed, I'd like to update the path on the destination disk (if possible).

Requiremnts

  • keep all files on destination, ie. do not remove ANY files from destination
    • however if a file moves on the source, update the path on the destination
  • if a file is removed from the source, do NOT remove from destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment