
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