Skip to content

Instantly share code, notes, and snippets.

View marvin-marvin's full-sized avatar
⌨️
https://gist.github.com/marvin-marvin

Marvin marvin-marvin

⌨️
https://gist.github.com/marvin-marvin
  • Braunschweig, Germany
View GitHub Profile
@marvin-marvin
marvin-marvin / speedtest_crontab
Last active June 24, 2019 16:18
speedtest crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
00 * * * * echo "######################################################" > /proc/1/fd/1 2>/proc/1/fd/2 && echo "################## `date +\%F-\%H:\%M` ##################" > /proc/1/fd/1 2>/proc/1/fd/2 && echo "######################################################" > /proc/1/fd/1 2>/proc/1/fd/2 && /usr/local/bin/speedtest --bytes --secure > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / etcd_backup_crontab
Last active June 24, 2019 11:27
etcd backup crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
ETCDCTL_API=3
# min,hour,dayOfMonth,month,dayOfWeek
00 02 * * * cd /root/etcd-backup && mkdir -p `date +\%F` && cd `date +\%F` && /bin/etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/healthcheck-client.crt --key=/etc/kubernetes/pki/etcd/healthcheck-client.key snapshot save etcd-snapshot-`date +\%F`.db > /proc/1/fd/1 2>/proc/1/fd/2 && tar -zcvf etc-kubernetes.tar.gz /etc/kubernetes > /proc/1/fd/1 2>/proc/1/fd/2 && mv etc-kubernetes.tar.gz etc-kubernetes-`date +\%F`.tar.gz && /usr/bin/rclone copy -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=100 --checkers=50 --retries=20 --transfers=10 --drive-acknowledge-abuse local:/root/etcd-backup/`date +\%F` gdrive:_backups/etcd_master/`date +\%F` > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / github_backup_crontab
Last active June 24, 2019 11:27
github backup crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
00 02 * * * cd /root/github-backup && mkdir `date +\%F` && cd `date +\%F` && /workdir/github-backup.sh
@marvin-marvin
marvin-marvin / rclone_b2_crontab
Last active June 24, 2019 11:34
rclone b2 crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
# Marvin
00 07 */3 * * /usr/bin/rclone copy -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=30 --checkers=10 --retries=10 --transfers=10 --drive-acknowledge-abuse gdrive-marvin:Marvin b2:gdrive-23d237d8y7d8y/Marvin > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / rclone_blog_cumulus_crontab
Last active June 24, 2019 11:28
rclone blog cumulus crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
00 13 * * * /usr/bin/rclone copy -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=30 --checkers=10 --retries=10 --transfers=10 --drive-acknowledge-abuse cumulus:mklingspohn-backup-bt/beautyandthetech gdrive:_backups/BackWPup > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / rclone_blog_crontab
Last active June 24, 2019 11:28
rclone blog crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
30 12 * * * /usr/bin/rclone sync -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=30 --checkers=10 --retries=10 --transfers=10 --drive-acknowledge-abuse blog_ftp:www gdrive:_backups/blog_ftp > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / rclone_cumulus_crontab
Last active June 24, 2019 11:31
rclone cumulus crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
# Marvin
15 14 */3 * * /usr/bin/rclone copy -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=30 --checkers=10 --retries=10 --transfers=10 --drive-acknowledge-abuse gdrive-marvin:Marvin cumulus-encrypt:mklingspohn-backup/Marvin > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / rclone_s3_crontab
Last active June 24, 2019 11:35
rclone s3 crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
# Marvin
30 18 */4 * * /usr/bin/rclone copy -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=30 --checkers=10 --retries=10 --transfers=10 --drive-acknowledge-abuse gdrive-marvin:Marvin s3:mklingspohn-backup/Marvin > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / rclone_website_crontab
Last active June 24, 2019 11:28
rclone website crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
00 12 * * * /usr/bin/rclone sync -c -v -L --drive-pacer-min-sleep=100ms --bwlimit=10M --drive-chunk-size=128M --tpslimit=30 --checkers=10 --retries=10 --transfers=10 --drive-acknowledge-abuse website_ftp:html gdrive:_backups/website_ftp > /proc/1/fd/1 2>/proc/1/fd/2
@marvin-marvin
marvin-marvin / github_key_push_master.config
Last active January 24, 2021 19:49
github key push master
# insert in ~/.ssh/config
Host github.com
IdentityFile ~/.ssh/github_only_rsa
StrictHostKeyChecking no