Artificial intelligent assistant

Rsync: Is there any way to exclude multiples files and directory shortly? Is there any way to exclude multiples files and directory shortly with rsync? Below is my code: rsync -avzh . blabla@blabla:~/ --exclude=__pycache__ --exclude=checkpoints --exclude=logs --exclude=.git --exclude=plot I have to explicitly declare for each file (dir). I feel it too long.

The documentation for `rsync` (see `man rsync`) has the `--exclude-from` parameter that will allow you to specify a list of exclusions in a file.

With regard to your set of example exclusions, the directories should be followed with `/` to show they are directories rather than unspecified files or directories, and those that are only in your home directory itself should be prefixed with `/` so that they don't match anywhere else.

In an exclusions file they could be listed like this


# Directories found anywhere
__pycache__/
checkpoints/
logs/
plot/

# Directories found only in HOME
/.git/

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 98b5563402a4a434a4a418ea094b7999