SFTP support for backups

6 posts / 0 new
Last post
#1 Mon, 07/25/2016 - 07:20
Ivan2

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!

Tue, 07/26/2016 - 06:04
unborn
unborn's picture

its already there isnt it?

Configuring/troubleshooting Debian servers is always great fun

Wed, 07/27/2016 - 03:56
Ivan2

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)?

Thu, 07/28/2016 - 01:55 (Reply to #3)
unborn
unborn's picture

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

ssh backups in virtualmin

Configuring/troubleshooting Debian servers is always great fun

Thu, 08/04/2016 - 01:20
Ivan2

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?

Thu, 08/04/2016 - 05:14
unborn
unborn's picture

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.

Configuring/troubleshooting Debian servers is always great fun

Topic locked