1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix: use defined user for sftp transfer

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2020-11-14 18:02:45 +01:00
parent fa4bc65d0a
commit ff7d09898e
2 changed files with 3 additions and 2 deletions

View file

@ -7,10 +7,11 @@ set -e
###
RESTIC_SERVER=$(yunohost app setting restic server)
RESTIC_SERVER_PORT=$(yunohost app setting restic port)
RESTIC_SERVER_USER=$(yunohost app setting restic ssh_user)
RESTIC_PATH=$(yunohost app setting restic backup_path)
RESTIC_PASSWORD="$(yunohost app setting restic passphrase)"
RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/
RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER_USER@$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/
RESTIC_COMMAND=/usr/local/bin/restic
LOGFILE=/var/log/restic_backup.log

View file

@ -6,7 +6,7 @@
"en": "Backup your server with restic.",
"fr": "Sauvegardez votre serveur avec restic."
},
"version": "0.10.0~ynh2",
"version": "0.10.0~ynh3",
"url": "https://restic.net/",
"license": "BSD-2-Clause",
"maintainer": {