0

I think this is best explained with an example.

Example:

/mnt/mystorage/source
    => folder1
        => file11.txt
    => folder2
        => file21.txt

/mnt/mystorage/destination
    => folder1
        => file12.txt
    => folder2
        => file22.txt

The resulting file structure in the destination should be:

destination
    => folder1
        => file11.txt
        => file12.txt
    => folder2
        => file21.txt
        => file22.txt

I know I can use rsync with the "--remove-source-files" flag but that would mean it's copying the files/folders first. In my real world example, the source folder is several TBs in size and copying this much will take awhile. From my experience, moving a file/folder to another location in the same partition often means Linux (maybe any OS in general) just changes the file/folder references/pointers.

Thanks

Chris Davies
  • 116,213
  • 16
  • 160
  • 287
mrjayviper
  • 2,051

0 Answers0