shell script to backup files in a directory code example
Example: linux backup folder
cp -rp /path/to/folder-name /path/to/new-folder-bak
//The option -rp means copy recursive and preserve permissions.
cp -rp /path/to/folder-name /path/to/new-folder-bak
//The option -rp means copy recursive and preserve permissions.