Newer
Older
backup-commander / README.md
@John Pearcey John Pearcey on 9 Oct 1 KB WIP
  1. # Backup Commander
  2.  
  3. Add this line in the sudoers file (use visudo) and it must go AFTER the %sudo line
  4.  
  5. www-data ALL=(ALL) NOPASSWD: /usr/bin/php /var/www/html/bin/run-bu-by-id.php *
  6.  
  7. > [!NOTE]
  8. > A test note
  9.  
  10. Test by switching user to www-data:
  11. su -s /bin/bash www-data
  12. cd /var/www/html
  13. php bin/run-bu-by-id.php 19 0
  14. where 19 is the backup id and 0/1 is not-test/test
  15. Comment out /inc/secure.php in post_handler.php if the login is not required
  16. Highlighted `wxallowed`
  17.  
  18. html anchor [mount(8)](https://man.openbsd.org/mount.8))
  19. TODO:
  20.  
  21. create an install script: -- currently all manually done
  22. First version on Las-server
  23. Pre-requesite to push onto pearcey.net
  24. Generate a database schema with default login
  25. add the sudo entry for www-data (or other webserver user)
  26. kick off the schedule runner at the install stage
  27.  
  28.  
  29. create the schedule runner in php. simple polling of the DB
  30. get passwords from BD
  31. create a user credential page:
  32. new user+password
  33. change own password
  34. but only if the login is enabled (in post_handler.php)
  35.