How do I update only new files backup?

4 risposte [Ultimo contenuto]
nevermoreraven
Offline
Iscritto: 10/15/2014

I accidentally backed up to /home/username/username how to I copy that folder so it goes in /home/username/ and that it only moves new or recently changed files??

loldier
Offline
Iscritto: 02/17/2016
Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

I am not quite sure I understand the problem but here is a command to "move" (you probably do not want to "copy") every under /home/username/username to /home/username/:
$ mv /home/username/username/* /home/username/

And, yes, Déjà-Dup is great: https://trisquel.info/forum/buck-using-rsync#comment-96275

jbar
Offline
Iscritto: 01/22/2011

Maybe the '-u' option would be of interest

$ mv -u /home/username/username/* /home/username/

From mv manual:
-u, --update
move only when the SOURCE file is newer than the destination file or when the destination file is missing

nevermoreraven
Offline
Iscritto: 10/15/2014

I just used lucky backup instead and just modify the option to not delete files on destination not in source folder.