Skip to main content
Formatting fixes
Source Link
Mat
  • 54.9k
  • 11
  • 164
  • 143

G'day Hobbes3,

I prefer to use "rsync"rsync for this kind of action. On top of copying the files it can copy permissions and improve the transfer speed over conventional cpcp.

The trailing "/"/ on the destination is crucial for your requirement.

Try something like:

          rsync -aHSv /parentFolder/folder2 /parentFolder/folder1/

rsync -aHSv /parentFolder/folder2 /parentFolder/folder1/

G'day Hobbes3,

I prefer to use "rsync" for this kind of action. On top of copying the files it can copy permissions and improve the transfer speed over conventional cp.

The trailing "/" on the destination is crucial for your requirement.

Try something like:

          rsync -aHSv /parentFolder/folder2 /parentFolder/folder1/

I prefer to use rsync for this kind of action. On top of copying the files it can copy permissions and improve the transfer speed over conventional cp.

The trailing / on the destination is crucial for your requirement.

Try something like:

rsync -aHSv /parentFolder/folder2 /parentFolder/folder1/
Source Link

G'day Hobbes3,

I prefer to use "rsync" for this kind of action. On top of copying the files it can copy permissions and improve the transfer speed over conventional cp.

The trailing "/" on the destination is crucial for your requirement.

Try something like:

          rsync -aHSv /parentFolder/folder2 /parentFolder/folder1/