Take this structure:
/data/files/backup
I want to copy the files inside /data/files
to /data/files/backup
If I use
cp /data/files/* /data/files/backup
UNIX complains that the backup is a directory so I should use -r or -R
If I include -r or -R it complains it is a recursive copy.
How do I tell it to copy only FILES?
/data/files/backup
I want to copy the files inside /data/files
to /data/files/backup
If I use
cp /data/files/* /data/files/backup
UNIX complains that the backup is a directory so I should use -r or -R
If I include -r or -R it complains it is a recursive copy.
How do I tell it to copy only FILES?