Table of Contents

Background

Sometimes, we may need to copy someone's MD projects for reference, and software rsync could be helpful.

However, the file size can be over 10GB! So, option --exclude of rsync is necessary, to exclude all files we do not need, such as .nc, .out, .rst...

Then comes another problem: several symbolic links are missed, such as link 5_run/run000.rst.

Thus, an alias is created for convenience.

Method

Add the following line into file .cshrc in your home directory:

alias ambsync '/usr/bin/rsync -avz --include={3_heat/min_2.rst,4_equil/heat.rst,5_run/run000.rst} --exclude={*.out,*.nc,*.rst,1_build/wbox.*,mdinfo}'

And you can use that command like this:

ambsync dirSrc/* dirTgt

Notes