2
0

force_backup 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. #=================================================
  3. # GENERIC STARTING
  4. #=================================================
  5. # IMPORT GENERIC HELPERS
  6. #=================================================
  7. source scripts/_common.sh
  8. source /usr/share/yunohost/helpers
  9. #=================================================
  10. # RETRIEVE ARGUMENTS
  11. #=================================================
  12. ynh_script_progression --message="Retrieve arguments from the manifest"
  13. app=${YNH_APP_INSTANCE_NAME:-$YNH_APP_ID}
  14. final_path=$(ynh_app_setting_get $app final_path)
  15. #=================================================
  16. # CHECK IF ARGUMENTS ARE CORRECT
  17. #=================================================
  18. #=================================================
  19. # CHECK IF AN ACTION HAS TO BE DONE
  20. #=================================================
  21. #=================================================
  22. # SPECIFIC ACTION
  23. #=================================================
  24. # FORCE A NEW BACKUP
  25. #=================================================
  26. ynh_script_progression --message="Force a new backup" --weight=9
  27. ynh_exec_warn nice -n10 $final_path/archivist.sh
  28. #=================================================
  29. # END OF SCRIPT
  30. #=================================================
  31. ynh_script_progression --message="Execution completed" --last