Schnapps creates directory if sshfs mount fails
Originally from this forum comment (by dmth
): https://forum.turris.cz/t/uploading-snapshots-with-schnapps-by-ssh-help-needed/13532/8
If sshfs is unable to mount the remote directory, for instance because of insufficient file permissions, schnapps will create the folder /mnt/.remote-snapshotson
the local storage, for instance mmcblk1p1
, and will even report a successful backup. In my opinion, schnapps should die when sshfs fails.
For the record, this is what worked for me:
- Store username and Host-IP for the remote host in
.ssh/config
of the turris router. - Make sure the user has write permissions to the backup-directory.
schnapps upload NUMBEROFSNAPSHOT ssh://remotehostnamefromsshconfig:/absolute/path/to/directory/