Rsync supports multiple source paths. For example,
When source is local:
rsync /path/to/file1 /path/to/file2 /path/to/file3 user@ip:/dest/path/
When source is remote:
rsync user@ip:/path/to/file1 user@ip:/path/to/file2 user@ip:/path/to/file3 /dest/path/
The code here supports only a single source, although I think the adjustment would be straightforward.
Rsync supports multiple source paths. For example,
When source is local:
When source is remote:
The code here supports only a single source, although I think the adjustment would be straightforward.