DRBL

Diskless Remote Boot in Linux

DRBL management
Copy a file or directory to all clients

2016/Apr/05


Copy a file or directory to all clients

"drbl-cp-host" will copy a file or directory to all clients.
Syntax:

drbl-cp-host [-d target_directory] source target

Here the "source" is the file in the DRBL server, and the "target" is relative to the client's / directory. "-d target_directory" (optional) is the directory you want to put in the client.
For example, if you have a /etc/X11/xorg.conf file in a client (say 192.168.101.1), and you want to copy it to all client's /etc/X11, you can run this:
# drbl-cp-host /tftpboot/nodes/192.168.101.1/etc/X11/xorg.conf /etc/X11