[scp-backup]command:su {USER} -c /usr/home/scp-backup.shtype:script_outputmessage:backing up config filedescription:Backup config file
#!/bin/shif [ $(id -u) -eq {USERID} ]; then APPENDIX="$(hostname)-$(date +"%Y%m%d%H%M%S")" echo "Uploading config-$APPENDIX.xml" scp /config/config.xml {USER}@{HOST}:{PATH}/config-$APPENDIX.xmlfi
I think from the security perspective, it was safer in the 18.1 version to have a ssh key and a dedicated user without any permissions, just pull the configuration. Now, we have to give the backup admin and bash rights.