LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2009, 06:31 AM   #1
drk2009
LQ Newbie
 
Registered: Jun 2009
Location: Australia
Distribution: ubuntu, mac and vista
Posts: 8

Rep: Reputation: 0
Question lockfile - What is this code for?


I am using ububtu 8.4 LS and my back up file
keeps looking itself after a few days. I have look around
all the files and I find the following code.

[exclude]
regex = \.ogm\,\.tmp,/home/[^/]+?/\. thumbnails,/home/[^/]/\. Trash maxsize = -1

[dirconfig]
/tmp = 0
/proc = 0
/var = 1
/home = 1
/dev = 0
/var/cache = 0
/sys = 0

[general]
maxincrement = 7

lockfile = /var/lock/sbackup.lock
target = /home/shares/backups
format = 1

Does anyone knows if this could be the file that is locking my backup folder?
if so, can anyone give me some explanations as to what the above commands do so I can understand it better and If I will brack something important if I delited?

Thank you,
 
Old 07-30-2009, 05:01 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
If it ist this program you are asking about:
sbackup
http://www.debianadmin.com/backup-an...g-sbackup.html
(the only english thing I found doing a quick search)
then you should:
1.) confirm this
2.) rephrase your question - do you want to know about the syntax in the config-file? or what the posted config-file does? or something else?
Quote:
keeps looking itself
is not clear (to me that is...)

p.s.: I won't be answering then, since I know nothing about it
 
Old 07-31-2009, 10:59 PM   #3
drk2009
LQ Newbie
 
Registered: Jun 2009
Location: Australia
Distribution: ubuntu, mac and vista
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you for your reply,

Well, I basically want to know what cold be locking my backup folder?

I have simple backup software on my computer.I will look into the simple backup software to see if it has any setting for locking folders as that could be the problem.
 
Old 08-01-2009, 12:45 AM   #4
geek745
Member
 
Registered: Jul 2004
Location: Boston, MA
Distribution: Slackware; Ubuntu; Slax
Posts: 172
Blog Entries: 2

Rep: Reputation: 34
well, a lock file is used to stop tasks from occurring simultaneously that must occur mutually-exclusively with respect to time - they cannot run at the same time. The idea for a backup program locking itself is obvious - it makes no sense to obtain a backup snapshot of the same state of the vast majority of your files, if not all of them, twice.

the regex (short for regular expression) in the [exclude] section seems to be selectively backing up everything except thumbnails in any directory under /home (which can be generated dynamically later and would only be bloat in the backup), temporary files for the user, and a couple other things that may be unique to your system.

the [dirconfig] section seems to be marking dynamic system directories as also being excluded from the backup

finally, the [general] section contains information about where the backup should be stored (target), the lockfile, and other options that you can probably configure the software with.

If your problem is that sometimes the backup does not run, is it possible that it is already running? That is the purpose of the lock file - the program should create the lock file if it does not exist, and if it does exist, the program should exit. When it is done running, it should remove the lock file so that the next time around it can run as expected.

How often is the backup scheduled to run?

The community here can better assist you if you answer the questions, and determine exactly what program we are talking about.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apcupsd: what is the function of a LOCKFILE? engelienart Linux - Software 6 03-01-2009 04:55 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
mozilla lockfile deletion fibbi Linux - Software 1 04-15-2004 12:13 PM
Can't add users... vipw lockfile? jordan0 Linux - Newbie 1 09-29-2003 04:48 PM
vm-pop3d Failed to create lockfile mocny Linux - General 0 08-18-2002 04:42 AM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration