LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-24-2006, 06:37 PM   #1
nkendrick
LQ Newbie
 
Registered: Nov 2003
Posts: 16

Rep: Reputation: 0
Checking and changing DOS attributes on a samba mounted share


Hi Folks,

One of my Linux boxes uses samba to mount a hard disk on an NT workstation - in effect, the mount point /shares/pd gets you to the 'C' drive on the workstation.

What I want to do is create a zip or tgz file on the linux box that contains some database files from the NT PC using a cron job.

So far so good, BUT I only need the ZIP/tgz file to contain files from 'drive c' that have changed since the last time the operation was run. The ideal way to do this would be to check the archive bit of the target files, but I cannot see how to do this from the Linux world.

In effect, I need to do the following:

If archive_bit_set(/shares/pd/$file) then
add /shares/pd/$file to zip
clear_archive_bit(/shares/pd/$file)
endif

The only other way I can nearly see how to do this is by having a baseline set of the files on the Linux server and then doing some sort of..

If Linux copy of file is different from copy on C drive then
copy the file on C over the Linux one
add copy of file to zip
endif

Any thoughts?

Many thanks
 
Old 08-24-2006, 07:47 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
What you are asking for sounds like what I know as incremental backups. How about using smbtar -i?

--- rod.
 
  


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
Can't get RW permission on a mounted samba share darkangel12613 Linux - Software 6 08-31-2006 07:04 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Samba 3.0.8 And DOS File Attributes? batterseapower Linux - Software 2 12-14-2004 01:01 AM
Getting Samba to store DOS read only attributes nwykes Linux - Newbie 0 11-18-2003 06:07 AM
Mounting a Samba Share from DOS boot disk mattkat Linux - Software 4 10-11-2002 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 PM.

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
Open Source Consulting | Domain Registration