Hi,
I have previously run my rsync tasks from cron. Now I noticed there is rsync tab for such tasks. However, I can't find a way to specify the private key for the rsync+ssh task. How to set it?
If I'd create key for root, I assume that's gone after the next update. In cron it works like this:
rsync -a -e 'ssh -i /mnt/raid/user/.ssh/id_ecdsa' root@remote.net:/var/lib/docker/exported_volumes /mnt/raid/backup/
so I can specify private key. I would like to use root, so it preserves ownership in files, where as if selecting user for it, I can't preserve those.
So is there a trick for that, or is this only thought to be run with user and not possible to preserve file ownership and modes?
I have previously run my rsync tasks from cron. Now I noticed there is rsync tab for such tasks. However, I can't find a way to specify the private key for the rsync+ssh task. How to set it?
If I'd create key for root, I assume that's gone after the next update. In cron it works like this:
rsync -a -e 'ssh -i /mnt/raid/user/.ssh/id_ecdsa' root@remote.net:/var/lib/docker/exported_volumes /mnt/raid/backup/
so I can specify private key. I would like to use root, so it preserves ownership in files, where as if selecting user for it, I can't preserve those.
So is there a trick for that, or is this only thought to be run with user and not possible to preserve file ownership and modes?