On Friday, April 6, 2018 at 10:30:12 PM UTC+10, Julian Santander wrote:

> The objective is to obtain a back-up of a directory in the target machine 
> (managed) and needs to be saved to the controller host (where ansible runs).
>

Why use Ansible? Something like rsync would seem to be the right tool. 
Though you might need to use Ansible to install rsync on the target system 
:-)

rsync has the advantage (since you say the backup is huge) of being able to 
restart a failed transfer (look for "partial" in the man page) and of being 
able to transfer only changed items if the backup is going to be a regular 
event; this massively reduces the size and duration of backup operations 
after the first.

I'm not sure what "synchronize" is; if you mean rsync, then I suggest that 
the benefits to be gained will more than offset the investment in figuring 
out how to use it (though in my experience it is extremely simple to use).

Because rsync can use ssh, any user on the local system can access any 
user, privileged or otherwise, on the target system, provided the local 
system user's public key is in the authorized_keys file for the relevant 
user on the target system.
 
Regards, K.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f26caaeb-3f49-448b-9fca-44116e79d95f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to