Backup
20 Jun 2018/etc/cron.daily/gitlab-rsync
1 2 3 4 5 6
#!/bin/bash echo "=== START === $(date)" >> /var/log/gitlab-rsync.log cd /data rsync -zarv --del -e "ssh -p 9022" --include="*/" . 104.155.194.118:/data >> /var/log/gitlab-rsync.log 2>&1 echo "=== END ===" >> /var/log/gitlab-rsync.log
/etc/cron.daily/aptly-rsync
1 2 3 4 5 6
#!/bin/bash echo "=== START === $(date)" >> /var/log/aptly-rsync.log cd /opt/aptly rsync -zarv --del --include="*/" . 35.189.154.62:/opt/aptly >> /var/log/aptly-rsync.log 2>&1 echo "=== END ===" >> /var/log/aptly-rsync.log