update
continuous-integration/drone/push Build is passing Details

master
wanggang 4 years ago
parent 4faa67087d
commit 9fc7232554

@ -1 +0,0 @@
0 */1 * * * /backup.sh

@ -1,2 +1,4 @@
#!/bin/sh
echo start at:$(date +%F%n%T)
rsync -ratlz -e 'ssh -p 9022' /mnt/ root@49.4.92.112:/data/backup/cicd
echo end at:$(date +%F%n%T)

@ -1,4 +0,0 @@
#!/bin/sh
crontab /crontab
crond
tail -f /dev/null

@ -12,11 +12,9 @@ services:
restart: always
volumes:
- ./conf/rsync/.ssh:/root/.ssh
- ./conf/rsync/crontab:/crontab
- ./conf/rsync/backup.sh:/backup.sh
- ./conf/rsync/start.sh:/start.sh
- ${RSYNC_LOCAL}:/mnt
command: sh -c "chmod 755 /start.sh && /start.sh"
- ./conf/periodic:/etc/periodic
command: "crond -f"
portainer:
image: portainer/portainer-ce:2.5.1
restart: always

Loading…
Cancel
Save