Update btrfs-backup script. Add lock file generation
This commit is contained in:
parent
3410cbee8f
commit
f0f6e3c71a
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ create_lock() {
|
|||
fi
|
||||
|
||||
# Create new lock file with current PID
|
||||
sudo touch "$LOCK_FILE"
|
||||
sudo echo $$ > "$LOCK_FILE"
|
||||
|
||||
# Ensure lock file is removed on script exit
|
||||
|
|
Loading…
Reference in a new issue