General discussion


CP command with more options

By Lintadsl ·
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 conversation is currently closed to new comments.

13 total posts (Page 2 of 2)   Prev   01 | 02
Thread display: Collapse - | Expand +

All Comments

Back to Linux Forum
13 total posts (Page 2 of 2)   Prev   01 | 02

Related Discussions

Related Forums