# 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 - Activate that alias using command `source ~/.cshrc`, or just open another new shell. - The name `ambsync` can be changed as you like. - You can customize the string following option `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} ``` - It is highly recommended to put all aliases together, which means that you should add that line below the line `alias ll 'ls -al'`.