For internal use
For internal use
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.
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
source ~/.cshrc, or just open another new shell.ambsync can be changed as you like.include/exclude, but remember that file names should be joined with one comma , and no spaces .legal: --exclude={*.out,*.nc,*.rst,mdinfo}
illegal: --exclude={*.out,*.nc,*.rst, mdinfo}
alias ll 'ls -al'.