Score:0

Copy everything but ignore something

us flag

I'm a Python programmer. And sysadmin tricks are hard for me. Could you help me create a bash script or somethins to do this:

This is some quazy reusable application. In one place I program. And then copy to another place. Please, don't suggest any other solution (via pip or something).

The structure of the application may look like this:

   ├── images
      ├── admin.py
      ├── apps.py
      ├── const
      │   ├── choices.py
      │   ├── create_images.py
      │   ├── general.py
      │   ├── img_types.py
      │   ├── __init__.py
      │   └── __pycache__
      │       ├── choices.cpython-38.pyc
      │       ├── create_images.cpython-38.pyc
      │       ├── general.cpython-38.pyc
      │       ├── img_types.cpython-38.pyc
      │       └── __init__.cpython-38.pyc
      ├── create_img_blanks
      │   ├── create_img_blanks.py
      │   ├── __init__.py
      │   └── __pycache__
      │       ├── create_img_blanks.cpython-38.pyc
      │       └── __init__.cpython-38.pyc
      ├── doc.md
      ├── dummy_data
      │   └── img
      │       ├── pigeons_16_9.jpg
      │       └── pigeous_1_1.jpg
      ├── exceptions.py
      ├── forms.py
      ├── __init__.py
      ├── migrations
      │   ├── 0001_initial.py
      │   ├── __init__.py
      │   └── __pycache__
      │       └── __init__.cpython-38.pyc
      ├── model_mixins.py
      ├── models.py
      ├── __pycache__
      │   ├── admin.cpython-38.pyc
      │   ├── apps.cpython-38.pyc
      │   ├── exceptions.cpython-38.pyc
      │   ├── forms.cpython-38.pyc
      │   ├── __init__.cpython-38.pyc
      │   ├── model_mixins.cpython-38.pyc
      │   ├── models.cpython-38.pyc
      │   ├── signals.cpython-38.pyc
      │   ├── urls.cpython-38.pyc
      │   ├── utils.cpython-38.pyc
      │   ├── validators.cpython-38.pyc
      │   └── views.cpython-38.pyc
      ├── requirements.txt
      ├── signals.py
      ├── storages.py
      ├── templates
      │   └── images
      │       ├── create_img_blanks
      │       │   └── result.html
      │       ├── demo
      │       │   └── demo.html
      │       ├── favicon
      │       │   ├── browserconfig.xml
      │       │   ├── favicon.html
      │       │   └── site.webmanifest
      │       └── squoosh
      │           └── result.html
      ├── templatetags
      │   ├── images.py
      │   ├── __init__.py
      │   └── __pycache__
      │       ├── images.cpython-38.pyc
      │       └── __init__.cpython-38.pyc
      ├── urls.py
      ├── utils.py
      ├── validators.py
      └── views.py

I'd like to organize a bas command that:

  1. Ignores: a) migrations dir. b) All _ pycache _ dirs.
  2. Copy evetyithing else to the destination dirs.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.