# Paramiko SSH is very CPU consuming #TARGET='scp://gitlabbackup@192.168.0.230//mnt/backup/gitlabbackup' TARGET='sftp://gitlabbackup@192.168.0.230//mnt/backup/gitlabbackup' # Limit network speed DUPL_PRECMD="trickle -s -u 1500 -d 256" SOURCE='/' MAX_AGE=6M MAX_FULL_BACKUPS=2 MAX_FULLS_WITH_INCRS=2 MAX_FULLBKP_AGE=3M DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE " VOLSIZE=256 DUPL_PARAMS="$DUPL_PARAMS --volsize $VOLSIZE " VERBOSITY=4 TEMP_DIR=/tmp # Specify different id_rsa file: DUPL_PARAMS="$DUPL_PARAMS --ssh-options=-oIdentityFile='/root/.duply/gitlab/id_rsa' " DUPL_PARAMS="$DUPL_PARAMS --no-compression " # Do not use GZip to compress files on remote system. DUPL_PARAMS="$DUPL_PARAMS --ssh-options=-carcfour128 " # light cipher for NAS DUPL_PARAMS="$DUPL_PARAMS --ssh-options=-oCompression=no " # disable ssh compression DUPL_PARAMS="$DUPL_PARAMS --asynchronous-upload " # uploads in background