SFTP support for backups

Hi!
It would be nice to see support for SFTP for backups in Virtualmin. Is that feature somewhere on the wish-list?

Thank you!

its already there isnt it?

Don’t think so, to backup to SFTP I had to use sshfs to mount it locally. Or I’m doing something wrong (always possible)?

Hi Ivan, on virutalmin > scheduled backups > click on ssh in destination and format tab, is this what you after?

ssh backups in virtualmin

I tried this but it keeps failing.

I have set up backup using sshfs, and sometimes it runs correctly, but sometimes fails with error:
“… copy failed : cp: failed to preserve ownership for `/myfolder/mybackup.tar.gz’: Permission denied”

Do you have any clues why is this happening?
Also, would it be possible not to fail the backup when permission change fails?

Hi Ivan, well it should work correctly all the times… how it works is your server will connect via ssh with ssh keys to your another (backup) server as correct user and copy all files out - so no permissions issues…

server-files-to-backup >> ssh user@host >> command for copying as user logged in on server-to-keep-backups - you should never had issues with it…

perhaps its the way how you connecting or user who is connecting… - can you paste here command what are you using for it? (do not paste hostnames or ip addresses out…just use srv-to-backup/srv-to-keep-backip instead.

I do not know as I do not see things related to it behind the scenes… but if set correctly you should never had any issues.