CP command with more options - TechRepublic
General discussion
April 10, 2003 at 03:03 AM
lintadsl

CP command with more options

by lintadsl . Updated 17 years, 1 month ago

I want to copy all home folder with sub-folders to /mnt/backup folder everyday at midnight. So, I used cp -R /home/* /mnt/backup/ command and make a script and put it in the cron. First night, it works. But second night, it did not work because it prompted for overwrite. I have used –force but still prompt for overwrite. How can I bypass for overwrite? I looked at the man for cp but did not help me.
I am using Redhat 7.3.
Thanks in advance.

This discussion is locked

All Comments