I created a few other files in there too just to see how it worked.
Then just run And this will use rsync to copy the contents of the test-directory into the home directory of the deploy user on each of the servers.
To ensure app data is properly migrated you have to update and enable the apps after each step.
They are automatically disabled to make sure the server does not break during the upgrade.
configure: error: in `/home/tecmint/coreutils-8.21': configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See `config.log' for more details Once, compilation completes, two new commands are created under src/cp and src/mv.
You need to replace your original cp and mv commands with these two new commands to get the progress bar while copying files.
Installing from pre-compiled binaries should always work correctly and requires lesser experience and very effective for Linux newbies.
But I suggest you to compile from sources, for this you required original version of GNU coreutils and latest patchfile of Advacned-Copy.
The “-R” option is for copying directories recursively.
Here is an example screen-shots of a copy process using advanced copy command.
Remember, I set this up as my jenkins user, but whatever user you’re using, log in as them to do the next parts. I started with a dummy file in my home directory, and some text inside “hello ansible!
” So to run a copy command from ansible, you have to type: You’ll see on each of the webservers that there is now a file in the deploy user’s home directory. But a copy command is pretty slow when you’re dealing with a website’s worth of files.
Please see part 1 Everything I’ve read about Ansible talks about these big fancy “playbooks” but all I know how to do is run a ping from the command line to check if my servers exist.