On Sat, 30 Jul 2022 17:44:12 +0700 Ian Hobson <[email protected]> wrote:
> - name: "restore files to {{ location }}"
> ansible.builtin.copy:
> src: "/home/ian/backup/hobson42/var/www/ianhobson.com/"
> dest: "{{ location }}"
>
> It copies 5022 files, totalling 109.2Mb, and even though both machines
> have NVME SSDs and the network is quiet,
> the task takes over 30 minutes!
Use module *ansible.posix.synchronize* if you can install *rsync*
both on local and remote host. See
https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html
--
Vladimir Botka
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20220730125526.0b559bad%40gmail.com.
pgpq4hMYoHfsw.pgp
Description: OpenPGP digital signature
