backup folder linux code example
Example 1: copy directory command in linux
$ cp -R <source_folder> <destination_folder>
Example 2: linux backup folder
cp -rp /path/to/folder-name /path/to/new-folder-bak
//The option -rp means copy recursive and preserve permissions.
Example 3: copy directory command in linux
$ cp -R <source_folder>/* <destination_folder>