This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
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.
Configuring/troubleshooting Debian servers is always great fun
its already there isnt it?
Configuring/troubleshooting Debian servers is always great fun
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?
Configuring/troubleshooting Debian servers is always great fun
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.
Configuring/troubleshooting Debian servers is always great fun