Backup of directory

Posted on Updated on

I at times does not recall the command to backup a directory. So here for my own sake of reference:

$ rsync -au /home/fnielsen/Pictures/ /media/fnielsen/a4f11e07-3f63-45cc-bcab-e7d135c14b9c/backup/Billeder/

the -a is the standard archive option. the -u is ‘update’ (“skip files that are newer on the receiver”).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s