[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copy all files and folders from USB drive to SATA drive..



On Sat, Oct 24, 2015 at 8:57 AM, German <gentgerman@gmail.com> wrote:
> Hi everyone.
>
> I set up something like NAS for torrent files and installed debian on
> it. Installed one 4TB internal drive. My files are on USB drive. I'd
> like to copy all of them from my USB drive to internal drive. Are there
> any commands to do it in one go? I also formatted internal drive to
> ext4 filesystem. I hope I've done right thing. Please advice. Thanks
>

I normally use

rsync -prltvzD user1@host1:dir1 user2@host2:dir2

which copies dir1 on host1 using user1 account into dir2 on host2
using user2 account.

The advantage of rsync is that if the process terminates in between,
you can run the command again and it picks up from where it left. Do
read the man page of rsync or some tutorials on the web before you
start using it. It supports tons of options.

hope that helps
raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog


Reply to: