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

Re: how to copy files

On Sunday 14 May 2017 21:57:35 Long Wind wrote:
> I have a folder in hard drive and a backup of it is made in a USB disk
> Now some new files are added to the folder in hard drive
> how to make the folder in USB disk the same as in hard drive?
> I want a program that can check the two folders
> if file size and file name are same, they are regarded as same
> if not, update is needed
> I have try rsync, but can't find such options

cp -Rpu /home/. /backup/

will copy only new stiff, but all new stuff.

That is for everything in home.  But you could do the same for one folder or 
sub-folder, or one user.


Reply to: