Skip to content
Snippets Groups Projects
Select Git revision
  • 52765f36dacfc831e876aeba656bb66f65904069
  • demo_ci_gitlab_pages default
  • demo_gitlab_ci
  • 5-images-in-annotations
  • 5-final-images
  • 5-chpk-images-in-annot
  • tetras-main protected
  • 5-rebase-images-in-annot
  • 5-wip-images-in-annot
  • tmp
  • 1-edit-annotations-on-videos
  • 5-old-images-in-annotations
  • old_demo_ci_gitlab_pages
  • images_annotations
  • wip
  • devsetup
  • wip-annot-video-ui
  • wip-annotations-on-videos
  • master
  • v0.4.0_react16
  • wip-debugging-annotations
21 results

canvasAnnotationsPlugin.js

Blame
  • Forked from IIIF / Mirador / Mirador annotations
    Source project has a limited visibility.
    .env.sample 1.03 KiB
    host="CHANGEME"
    user="CHANGEME"
    ftppass="CHANGEME"
    encpass='CHANGEME'
    
    bckplist="/root /etc /srv /var/www /usr /lib /opt /var/opt /var/lib/docker/volumes/ /home"
    remotedir="bckp_`hostname`"
    verbosity="info"
    # Set an arcihve directory, subdir of /root/.cache/duplicity
    archive_dir=""
    log_file=/var/log/bckp.log
    
    
    BK_FULL_FREQ="3W" # create a new full backup every...
    BK_FULL_LIFE="2M" # delete any backup older than this
    BK_KEEP_FULL="2"  # How many full+inc cycle to keep
    
    pre_actions(){
        if [ ! -z "$(which mysql)" ]; then
            mysqldump --events --single-transaction --flush-logs --all-databases \
                | gzip > /root/db.sql.gz
            exit_on_fail $? "Backup mysql databses"
        fi
        if [ ! -z "$(which gitlab-ctl)" ]; then
            /usr/bin/gitlab-rake  gitlab:backup:create
            backup_path=`grep "'backup_path'" /etc/gitlab/gitlab.rb  | sed 's/^.*= "\(.*\)"$/\1/'`
            exit_on_fail $? "Backup gitlab"
            if [ -d "$backup_path" ]; then
                /bin/ls -dt $backup_path/* | tail -n +11 | xargs rm -rf
            fi
        fi
    }