Line 5: |
Line 5: |
| The following is updated, tested and confirmed for SME Server 9 | | The following is updated, tested and confirmed for SME Server 9 |
| | | |
− | '''Does not work with latest 9.1 updates. A fix is needed to in the core SME admin pages to make this work again. This has been filed as [https://bugs.contribs.org/show_bug.cgi?id=10166 BUG 10166] in bugzilla''' | + | '''With an updated to SME Server 9.1 circa Q1 2017 it became necessary to add a -F back= argument to the login curl the below has been updated to reflect this.''' |
| | | |
| ===Pre-Requisites=== | | ===Pre-Requisites=== |
Line 23: |
Line 23: |
| These two actions map to the following cURL commands: | | These two actions map to the following cURL commands: |
| | | |
− | curl -s -k -b ~/.sme_cookies -c ~/.sme_cookies -F username='admin' -F password='your_password' -F back='https:/your_sme_server/' \ | + | curl -s -k -b ~/.sme_cookies -c ~/.sme_cookies -F username='admin' -F password='your_password' -F <nowiki>back='https://your_sme_server/'</nowiki> \ |
| <nowiki>https://your_sme_server/server-common/cgi-bin/login</nowiki> | | <nowiki>https://your_sme_server/server-common/cgi-bin/login</nowiki> |
| | | |
Line 67: |
Line 67: |
| #!/bin/sh | | #!/bin/sh |
| | | |
− | curl -s -k -b ~/.sme_cookies -c ~/.sme_cookies -F username=admin -F "password=<~/sme_password" -F <nowiki>back='https://snoopy/' \ | + | curl -s -k -b ~/.sme_cookies -c ~/.sme_cookies -F username=admin -F "password=<~/sme_password" -F <nowiki>back='https://snoopy/'</nowiki> \ |
| <nowiki>https://snoopy/server-common/cgi-bin/login</nowiki> && \ | | <nowiki>https://snoopy/server-common/cgi-bin/login</nowiki> && \ |
| curl -f -s -k -b ~/.sme_cookies -H 'Expect:' -F function=desktop-backup -F state=perform \ | | curl -f -s -k -b ~/.sme_cookies -H 'Expect:' -F function=desktop-backup -F state=perform \ |
Line 103: |
Line 103: |
| For Example: | | For Example: |
| curl -s -k -x stargate:3128 -b ~/.sme_cookies -c ~/.sme_cookies -F username=admin \ | | curl -s -k -x stargate:3128 -b ~/.sme_cookies -c ~/.sme_cookies -F username=admin \ |
− | -F "password=<~/sme_password" <nowiki>https://snoopy/server-common/cgi-bin/login</nowiki> && \ | + | -F "password=<~/sme_password" <nowiki>-F back='https://snoopy/' https://snoopy/server-common/cgi-bin/login</nowiki> && \ |
| curl -f -s -k -x stargate:3128 -b ~/.sme_cookies -F function=desktop-backup -H "Expect:" -F state=perform \ | | curl -f -s -k -x stargate:3128 -b ~/.sme_cookies -F function=desktop-backup -H "Expect:" -F state=perform \ |
| <nowiki>https://snoopy/server-manager/cgi-bin/backup > /home/smebackup/sme-snoopy-`/bin/date +\%d`.tgz</nowiki> | | <nowiki>https://snoopy/server-manager/cgi-bin/backup > /home/smebackup/sme-snoopy-`/bin/date +\%d`.tgz</nowiki> |