WAdama / nas_ab_status

Bash script for monitoring status of device backup in Synology Active Backup for Business in PRTG
GNU General Public License v3.0
9 stars 2 forks source link

jq package ? #7

Closed MatthieuNoirbusson closed 2 years ago

MatthieuNoirbusson commented 2 years ago

Hello,

Your code require jq package. How can you install it on a new Synology device ?

Thanks,

Matthieu

WAdama commented 2 years ago

Hi Matthieu,

now I'm a little bit puzzled. On my Synos jq is installed by default. I have to admit, this Syno is updated from 6.24 over 7.0 to 7.1.

On my Synos it's located under /bin.

Regards Ingo

MatthieuNoirbusson commented 2 years ago

You 're right. The problem was not with jq but with this line:

TASKID=$(sqlite3 /volume1/@ActiveBackup/config.db "select task_id from backup_task_device where device_id like '$DEVICEID'")

In my case, this command returns all 4 task IDs I created on my device, not just one.

So I replace it with: TASKID=$(sqlite3 /volume1/@ActiveBackup/config.db "select task_id from task_table where task_name like '$TASK'")

And now it's ok.

Thank you, Matthieu

WAdama commented 2 years ago

Hi Matthieu,

good to hear it's not a missing jq. That would be a pain to get one onto DSM... ;-)

I thought in case of the backups more of one task and several devices.

May I ask why you have several tasks for one device? Maybe I can consider it in my script.

MatthieuNoirbusson commented 2 years ago

Hi Ingo,

We always have 2 tasks here: the first one is an incremental backup that is run every day and the second one is a full backup every Sunday. Sometimes we need more jobs when some parts of the file system need specific scheduling.

Best regards,

Matthieu

WAdama commented 2 years ago

Do we really speak about Active Backup? As far as I now AB is performing an incremental forever.

So the first backup is a full backup of course and after that it's incremental.

Or is that the file server backup? This is the only task which don't do an image of the device to be backed up.

MatthieuNoirbusson commented 2 years ago

In IT production, we like to put on a belt and suspenders.

If the incremental is corrupted, we still have the possibility to start from a not too old full one.

WAdama commented 2 years ago

I understand that. I use for my data on NAS Hyper Backup and as fast access Snapshot Replication.

Just for for confirmation: You are speaking about the "File Server" backup, aren't you?

MatthieuNoirbusson commented 2 years ago

No it's a server backup.

WAdama commented 2 years ago

I ment the variants in ABfB: "PC" "Physical Server" or "File Server"

MatthieuNoirbusson commented 2 years ago

This is "Physical Server"

Matthieu

On Fri, Jun 17, 2022 at 5:52 PM Ingo @.***> wrote:

I ment the variants in ABfB: "PC" "Physical Server" or "File Server"

— Reply to this email directly, view it on GitHub https://github.com/WAdama/nas_ab_status/issues/7#issuecomment-1159012116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDM2G7Q45G6FPAMYTTQDJ3VPSNKPANCNFSM5Y7BRQ4A . You are receiving this because you authored the thread.Message ID: @.***>

WAdama commented 2 years ago

Hmm, then I'm still puzzled because in that mode there is no full or incremental backup, it's incremental forever...

But as your question is answered, I think I can close this...

Regards Ingo