Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[duplicityBackup] Check duplicity's lockfile.lock #16

Open
C-Duv opened this issue Apr 13, 2017 · 0 comments
Open

[duplicityBackup] Check duplicity's lockfile.lock #16

C-Duv opened this issue Apr 13, 2017 · 0 comments

Comments

@C-Duv
Copy link
Owner

C-Duv commented Apr 13, 2017

duplicity uses a file-based lock mechanism to avoid running simultaneous backups of the same source.
It creates a file named lockfile.lock in the archive directory (--archive-dir), in a subdirectory named as per the symbolic name of the backup (--name) or the hash the backend URL.
Example of location: ~/.cache/duplicity/my-foo-bar-backup/lockfile.lock.

If the duplicityBackup is run multiple time simultaneously, duplicity will correctly detect the presence of a lockfile and won't process extraneous backups: so everything is OK.
But I think script should check if duplicity's lock file exists before trying to run duplicity: it would avoid unnecessary processing and fail faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant