Hoster refused to provide daily backups and ftp access to them. But it is possible to launch backup process from ispmanager-filemanager by GET. Backuping from shared hosting by hands was not an option. Reason for using phantomjs & casperjs was because of authentication cookie was produced by js. CURL is not for javascript execution. For js execution using phantomjs and casperjs.
- Authorizing with phantomjs & casperjs
- Receiving javascript produced cookie
- CURL GET request using cookie
- phantomjs
- casperjs
- curl
- Copy config.example.json to local/config.json and fill credentials.
- Set chmod 755 permissions for b.sh
- Set cron:
SHELL=/bin/bash
[email protected]
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 0 * * * /root/phan_bck/b.sh