Saturday, May 11, 2024
26
rated 0 times [  26] [ 0]  / answers: 1 / hits: 73651  / 2 Years ago, thu, september 15, 2022, 8:09:01

I have a folder I just luckily recovered sitting on:



/media/sdc1/Pictures


with a BUNCH of subdirectories and files that I need.



I want to copy these to a folder on:



/media/sdb1/Pictures


What command do I have to use in the terminal to make sure this happens? I know there is the cp command. But is that the best choice? And if so what options should I use to ensure I get every single directory and file?


More From » command-line

 Answers
3

I would use rsync for this so that if there is an error (or you need to stop copying) partway through you can easily resume later, without having to recopy everything.



rsync -av /media/sdc1/Pictures/ /media/sdb1/Pictures/

[#30936] Friday, September 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inaterested

Total Points: 500
Total Questions: 104
Total Answers: 92

Location: Virgin Islands (U.S.)
Member since Fri, May 7, 2021
3 Years ago
;