Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Copy for backup?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
pironman
Posts: 20
Joined: 2018-04-16 11:11

Copy for backup?

#1 Post by pironman »

I want to create a copy of my entire home directory, with all subdirectory and file, in an external hard disk. I'm looking for a command that copy a file only if it doesn't exist in the destination, or if the same file in the destination is older that that in source.
Is it possible to do that?

Thank you

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: Copy for backup?

#2 Post by 4D696B65 »

rsync
cp

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Copy for backup?

#3 Post by debiman »

i would add:
read the docs. rsync mostly; though others (me included) like to use more guided backup tools.

Post Reply