SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
samba share naming scheme
Author Message
Post samba share naming scheme 
Hi,

I've just set up rsnapshot it works great etc etc

However I'd like to share out the snapshots to my users over samba using
an easy naming scheme.

I take 11 hourly snapshots between 8am - 6pm

I then take a daily snapshot at 7pm

I know if I share out the snapshots labelled as hour.0, hour.1, day.0
etc my users would get confused and it'd be more hassle than it was worth.

So ideally I'd like to share these out in folders marked "8am", "9am"
etc for the hourly snapshots and "Mon", "Tues" etc for the dailies.
Something that makes sense from the users point of view.

Is this possible?

I can't see how to do this tho as labelling the samba folders "8am" etc
won't work as the snapshots move down the folders (ie are dynamic) while
the samba folders names are not (dynamic)

Unless I write a script to rename the samba shares every hour. This
seems a bit overkill/complex tho

If anyone could give me some ideas what naming scheme they use for their
samba shares t'would be great


D

--

Douglas Walker
Systems Administrator
Jones Coulter Young Architects
321 Murray St, Perth
WA, 6000


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post samba share naming scheme 
On Tue, 2007-08-21 at 15:17 +0800, Douglas Walker wrote:
I take 11 hourly snapshots between 8am - 6pm

I then take a daily snapshot at 7pm

I know if I share out the snapshots labelled as hour.0, hour.1, day.0
etc my users would get confused and it'd be more hassle than it was worth.

So ideally I'd like to share these out in folders marked "8am", "9am"
etc for the hourly snapshots and "Mon", "Tues" etc for the dailies.
Something that makes sense from the users point of view.

Is this possible?

I can't see how to do this tho as labelling the samba folders "8am" etc
won't work as the snapshots move down the folders (ie are dynamic) while
the samba folders names are not (dynamic)

Unless I write a script to rename the samba shares every hour. This
seems a bit overkill/complex tho

You'll have to write a script either way. Don't change the smb.conf,
just make a script (which might run after rsnapshot via the run script
hook) to manage symbolic links.


E.g. maje a directory 'history' and share that. Write a script which ln
-s each rsnapshot directory beneath the history directory, wih the names
you want. You'll quickqly generate the friendly names with teh right
commands.

Something like

for each dir in $rsnapshot_root; do ln -s $i /history/ $(stat -c %y
$i);done

(just a quick write, you'll want to tweak the stat output)


Serge

--
Serge van Ginderachter http://www.vanginderachter.be/

1f u c4n r34d th1s u r34lly n33d t0 g37 l41d. -- Unknown


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB