Jump to content
  • 0

Overwriting existing files during upgrading


Question

Posted

I want to upgrade my install to the latest version. 

In the Blesta documentation, it mentioned that I need to overwrite the files with the new version.

I tried using "mv" and "cp" but they require me to type 'y' to every file to be overwrite.

How do you do it in a single step?

2 answers to this question

Recommended Posts

  • 0
Posted
  On 6/10/2020 at 2:57 PM, Stanley said:

Found the answer.

Pipe yes to all the prompts.

yes | cp -R source_dir destination_dir

 

Expand  

You got it! I think you can also use cp -Rf source_dir destination_dir

The -f switch forces an overwrite.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...