diff --git a/conf/rsync/periodic/15min/job_sh b/conf/rsync/periodic/15min/job_sh index ca0d42b..8a7214f 100644 --- a/conf/rsync/periodic/15min/job_sh +++ b/conf/rsync/periodic/15min/job_sh @@ -1 +1 @@ -echo test at:$(date +%F%n%T) \ No newline at end of file +echo 15min at:$(date +%F%n%T) \ No newline at end of file diff --git a/conf/rsync/periodic/hourly/job_sh b/conf/rsync/periodic/hourly/job_sh new file mode 100644 index 0000000..bfb7cd4 --- /dev/null +++ b/conf/rsync/periodic/hourly/job_sh @@ -0,0 +1 @@ +echo hourly at:$(date +%F%n%T) \ No newline at end of file diff --git a/conf/rsync/periodic/monthly/job_sh b/conf/rsync/periodic/monthly/job_sh new file mode 100644 index 0000000..dcb2fa2 --- /dev/null +++ b/conf/rsync/periodic/monthly/job_sh @@ -0,0 +1 @@ +echo monthly at:$(date +%F%n%T) \ No newline at end of file diff --git a/conf/rsync/periodic/weekly/job_sh b/conf/rsync/periodic/weekly/job_sh new file mode 100644 index 0000000..7150919 --- /dev/null +++ b/conf/rsync/periodic/weekly/job_sh @@ -0,0 +1 @@ +echo weekly at:$(date +%F%n%T) \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 81c5c1f..5a3b627 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: - ./conf/rsync/.ssh:/root/.ssh - ./conf/rsync/periodic:/etc/periodic - ${RSYNC_LOCAL}:/mnt - command: "crond -f" + command: "/etc/periodic && crond -f" portainer: image: portainer/portainer-ce:2.5.1 restart: always