SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Possible to have individual .snapshot fo
Author Message
Post Possible to have individual .snapshot fo 
Hi,

I'm looking for a backup solution which will provide backups to all users,
in the form of a .snapshot directory with periodic kept backups.

I've seen systems at universities, other places of work etc, which provide a
'.snapshot' directory as a subdirectory in all user home dirs. The
rsnapshot utility seems to only create a backup in one place, which users
would have to navigate to themselves.

In reality, for the system to allow users to retrieve backups themselves,
they need to easily find the backups. Is there a way of doing this? I'm
guessing that all that would be needed would be to symlink from
/home/{user}/.snapshot folder /backups/snapshots/{user}

Any way to automate this - as part of the rsnapshot tool?

Dave




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Possible to have individual .snapshot fo 
You could probably just run a shell script like this every night:

------------------------------------------------------------------
#! /bin/sh
home=/home
snapshot_home=/backups/snapshots/daily.0/server$home
cd $snapshot_home
for user in *
do
# If a symlink /home/user/.snapshot does not already exist, then
# create a symlink to /backups/snapshots/daily.0/server/home/user
if [ -d $user -a -d $home/$user \
-a ! -L $home/$user/.snapshot ]; then
ln -s $snapshot_home/$user $home/$user/.snapshot
fi
done
------------------------------------------------------------------

You don't need to run it at the same time as rsnapshot.
In fact, you might want to run it whenever you create a new user.

On Sat, Oct 22, 2005 at 05:16:28PM +0000, Dave T wrote:
Hi,

I'm looking for a backup solution which will provide backups to all users,
in the form of a .snapshot directory with periodic kept backups.

I've seen systems at universities, other places of work etc, which provide
a '.snapshot' directory as a subdirectory in all user home dirs. The
rsnapshot utility seems to only create a backup in one place, which users
would have to navigate to themselves.

In reality, for the system to allow users to retrieve backups themselves,
they need to easily find the backups. Is there a way of doing this? I'm
guessing that all that would be needed would be to symlink from
/home/{user}/.snapshot folder /backups/snapshots/{user}

Any way to automate this - as part of the rsnapshot tool?

Dave




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

--
___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Possible to have individual .snapshot fo 
--- David Keegel <djk < at > cybersource.com.au> wrote:

You could probably just run a shell script like this
every night:


------------------------------------------------------------------
#! /bin/sh
home=/home
snapshot_home=/backups/snapshots/daily.0/server$home
cd $snapshot_home
for user in *
do
# If a symlink /home/user/.snapshot does not
already exist, then
# create a symlink to
/backups/snapshots/daily.0/server/home/user
if [ -d $user -a -d $home/$user \
-a ! -L $home/$user/.snapshot ]; then
ln -s $snapshot_home/$user $home/$user/.snapshot
fi
done

------------------------------------------------------------------

You don't need to run it at the same time as
rsnapshot.
In fact, you might want to run it whenever you
create a new user.

On Sat, Oct 22, 2005 at 05:16:28PM +0000, Dave T
wrote:
Hi,

I'm looking for a backup solution which will
provide backups to all users,
in the form of a .snapshot directory with periodic
kept backups.

I've seen systems at universities, other places of
work etc, which provide
a '.snapshot' directory as a subdirectory in all
user home dirs. The
rsnapshot utility seems to only create a backup in
one place, which users
would have to navigate to themselves.

In reality, for the system to allow users to
retrieve backups themselves,
they need to easily find the backups. Is there a
way of doing this? I'm
guessing that all that would be needed would be to
symlink from
/home/{user}/.snapshot folder
/backups/snapshots/{user}

Any way to automate this - as part of the
rsnapshot tool?

Dave






-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss
Training Course
Free Certification Exam for All Training Attendees
Through End of 2005
Visit http://www.jboss.com/services/certification
for more information
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

--

___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au>
http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration
Consulting/Contracting



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training
Course
Free Certification Exam for All Training Attendees
Through End of 2005
Visit http://www.jboss.com/services/certification
for more information

You should chmod it so only the user can read it:

chmod 700 for dirs, and 600 for files.

Anthony Ettinger
ph: (408) 656-2473
web: http://www.apwebdesign.com


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Possible to have individual .snapshot fo 
On Sat, Oct 22, 2005 at 09:18:30PM -0700, Anthony Ettinger wrote:
--- David Keegel <djk < at > cybersource.com.au> wrote:

You could probably just run a shell script like this
every night:

On Sat, Oct 22, 2005 at 05:16:28PM +0000, Dave T
wrote:

I'm looking for a backup solution which will
provide backups to all users,
in the form of a .snapshot directory with periodic
kept backups.

I'm guessing that all that would be needed would be to
symlink from
/home/{user}/.snapshot folder
/backups/snapshots/{user}

You should chmod it so only the user can read it:

chmod 700 for dirs, and 600 for files.

There should be no need to chmod the symlink. The directory
/backups/snapshots/daily.0/home/{user} would have the same
permissions as /home/{user}.

But that does remind me that its a good idea to read section 7.2
(Restoring backups - All users) of the rsnapshot HOWTO, here:
http://www.rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html#all_users
which explains how to make your snapshot directories read-only
for regular users to restore from. You wouldn't want regular
users to be able to change the files already backed up...

___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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