immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
49.94k stars 2.65k forks source link

fix docs guides backup-script #9275

Closed xiagw closed 2 months ago

xiagw commented 5 months ago

Description

fix docs guides backup-script

don't repeat script

Fixes # (issue)

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

thariq-shanavas commented 5 months ago

Thank you for improving the script!

if [ "$1" = init ]; then
    if _init_setup; then
        echo "init setup OK."
    else
        echo "init setup Fail, exit 1"
        exit 1
    fi
fi

Can you mention that the first time this script is run, it should be run as backup.sh init? Or preferably, keep the section for initializing the repositories separate?

jrasm91 commented 2 months ago

Since this was opened we've added community projects and guides. This seems like a better fix now. Feel free to add the script to a separate repo/gist and submit a new PR to link it in the community guides section.