rsync tasks with given ssh key to preserve owner

Status
Not open for further replies.

ikke

Contributor
Joined
Apr 22, 2012
Messages
124
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?
 

ikke

Contributor
Joined
Apr 22, 2012
Messages
124
I didn't look further. It would need an option in GUI, so it would be RFE from my view. I just use the cron for it.
 
Status
Not open for further replies.
Top