create (optional) locking to not to parallel backups on the same machine #1

Closed
opened 2021-11-20 11:23:44 +00:00 by ungleich-gitea · 12 comments

Created by: darktim

Hi Nico

if a Backup takes longer than 24 hours (which may occour on slow machines during initial backup), ccollect will not refuse to start another backup job for that target.

I would like to have a possibillitiy of locking for the targets.

For example you could use the marker file to determine of a backup is active for this target (if the pid is stale, you can start a new one, of course ;)

Greetz,
Andre

*Created by: darktim* Hi Nico if a Backup takes longer than 24 hours (which may occour on slow machines during initial backup), ccollect will not refuse to start another backup job for that target. I would like to have a possibillitiy of locking for the targets. For example you could use the marker file to determine of a backup is active for this target (if the pid is stale, you can start a new one, of course ;) Greetz, Andre
Author
Owner

Created by: darko-poljak

Closing this stale issue.

*Created by: darko-poljak* Closing this stale issue.
Author
Owner

Created by: darktim

Uhh, a reply to a 5 year old issue ;)

Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.

*Created by: darktim* Uhh, a reply to a 5 year old issue ;) Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.
Author
Owner

Created by: pazifi

Hi Andre,
i know it is not the same, but you can use "lockrun" or "flock" in crontab.

Example:
flock -xn /tmp/backup1.lck /opt/ccollect-something

Greetings
zap

*Created by: pazifi* Hi Andre, i know it is not the same, but you can use "lockrun" or "flock" in crontab. Example: flock -xn /tmp/backup1.lck /opt/ccollect-something Greetings zap
Author
Owner

Created by: darko-poljak

Closing this stale issue.

*Created by: darko-poljak* Closing this stale issue.
Author
Owner

Created by: darktim

Uhh, a reply to a 5 year old issue ;)

Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.

*Created by: darktim* Uhh, a reply to a 5 year old issue ;) Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.
Author
Owner

Created by: pazifi

Hi Andre,
i know it is not the same, but you can use "lockrun" or "flock" in crontab.

Example:
flock -xn /tmp/backup1.lck /opt/ccollect-something

Greetings
zap

*Created by: pazifi* Hi Andre, i know it is not the same, but you can use "lockrun" or "flock" in crontab. Example: flock -xn /tmp/backup1.lck /opt/ccollect-something Greetings zap
Author
Owner

Created by: darko-poljak

Closing this stale issue.

*Created by: darko-poljak* Closing this stale issue.
Author
Owner

Created by: darktim

Uhh, a reply to a 5 year old issue ;)

Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.

*Created by: darktim* Uhh, a reply to a 5 year old issue ;) Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.
Author
Owner

Created by: pazifi

Hi Andre,
i know it is not the same, but you can use "lockrun" or "flock" in crontab.

Example:
flock -xn /tmp/backup1.lck /opt/ccollect-something

Greetings
zap

*Created by: pazifi* Hi Andre, i know it is not the same, but you can use "lockrun" or "flock" in crontab. Example: flock -xn /tmp/backup1.lck /opt/ccollect-something Greetings zap
Author
Owner

Created by: darko-poljak

Closing this stale issue.

*Created by: darko-poljak* Closing this stale issue.
Author
Owner

Created by: darktim

Uhh, a reply to a 5 year old issue ;)

Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.

*Created by: darktim* Uhh, a reply to a 5 year old issue ;) Fortunately I am not working for the company where we used ccollect anymore, but thanks anyways.
Author
Owner

Created by: pazifi

Hi Andre,
i know it is not the same, but you can use "lockrun" or "flock" in crontab.

Example:
flock -xn /tmp/backup1.lck /opt/ccollect-something

Greetings
zap

*Created by: pazifi* Hi Andre, i know it is not the same, but you can use "lockrun" or "flock" in crontab. Example: flock -xn /tmp/backup1.lck /opt/ccollect-something Greetings zap
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/ccollect#1
No description provided.