Search code examples
linuxbashprovisioning

synchronise directory with root directory (provisioning)


My google-fu seems to have failed me.

I have a directory structure as follow

provisioner/
├── etc
│  ├── apt
│  │  ├── preferences.d
│  │  │  ├── experimental.pref
│  │  │  ├── security.pref
│  │  │  ├── stable.pref
│  │  │  ├── testing.pref
│  │  │  └── unstable.pref
│  │  └── sources.list.d
│  │      ├── experimental.list
│  │      ├── security.list
│  │      ├── stable.list
│  │      ├── testing.list
│  │      └── unstable.list

I have full access to the machine, is there a command that would allow me to put everything in provisioner/etc into /etc, provisioner/var inside /var and so on?

Side question: how do you call this?

Thank you!


Solution

  • Turns out my google-fu isn't really on point.

    rsync can be used locally:

    rsync -a provisioner /