Back

how to create cron backup on Ubuntu linux

  • 0
  • Self Hosted
  • Tools
  • General
Suiii
10 Jan, 2024, 13:33

it does not work as expected. it works okay if I manually run the shell script

TL;DR
User is asking for help on creating a cron backup on Ubuntu Linux. They mention that Linux by default sends an email when a cron job is completed, and asks about postfix. Another user suggests using grep to search in the logs, specifically "/var/log/syslog". The user mentions that they have not seen anything in the logs and that no backup folder has been created after waiting for two days. They also mention that the cron job works fine when manually run. There is no solution provided in the thread.
D5
10 Jan, 2024, 13:38

Are you sure the cron expression is written correctly?

Suiii
10 Jan, 2024, 13:39

what do you mean by here

Suiii
10 Jan, 2024, 13:39

any problem

D5
10 Jan, 2024, 13:39

I took a look. Seems correct 👀

Suiii
10 Jan, 2024, 13:40

yeah.

D5
10 Jan, 2024, 13:40

Do you get any errors or something?

Suiii
10 Jan, 2024, 13:40

not at all. seem it is not triggered anything.

Suiii
10 Jan, 2024, 13:40

i waited two days, no backup folder created

D5
10 Jan, 2024, 13:41

Yes, but do you have something in logs?

Suiii
10 Jan, 2024, 13:41

how to check bro

D5
10 Jan, 2024, 13:41

From what I'm seeing you should have It logged in /var/log/syslog

D5
10 Jan, 2024, 13:42

You can search in logs with gprep: grep CRON /var/log/syslog

Suiii
10 Jan, 2024, 13:43

@D5

D5
10 Jan, 2024, 13:47

Interesting. But from what I understand that should not affect execution, but result 🤔

Suiii
10 Jan, 2024, 13:49

😂 i expect to

D5
10 Jan, 2024, 13:52

I'm not very expert with OS sincerely, but from what I'm seeing in Google, It seems you need to install postfix. But not sure if that would solve the issue at all

Suiii
10 Jan, 2024, 13:52

postfix ?

Suiii
10 Jan, 2024, 13:53

what is it and does it do

D5
10 Jan, 2024, 13:54

Email handling. Seems Linux by default sends an email when a Cron job is completed

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more