How do I do a recursive file copy to copy any missing files without overwriting? (Busybox cp has no -n option and no rsync.)
The line below would be fine if the overwrite n response was automatically entered. Also need to exclude a couple of specific directories.
#!/bin/sh
target="/www/docroot/"
source="/rom$target"
cp -ir "$source"* "$target"
The line below would be fine if the overwrite n response was automatically entered. Also need to exclude a couple of specific directories.
#!/bin/sh
target="/www/docroot/"
source="/rom$target"
cp -ir "$source"* "$target"