Jan,

snapshot_root means the path where you will save your snapshot/backup. not
necessary this path exist, it will just automatically create. In your case,
you take a backup of your home directory and the destination will be the
external drive which is mounted in /backup, so your config will look like
this;

snapshot_root   /backup/
interval        daily        7
interval        weekly     4
backup  /home        localhost/

you can check first the syntax of your configuration file by using the
command,
-bash-3.00# rsnapshot configtest
So what happen is, inside you daily incremental backup is the whole /home
folder and inside it are the folders for each user. only the user can open
its own folder. you can then share you /backup folder if you want.
this is a very good backup/snapshot utility. we even use it in NAS as a file
system snapshot, for block level snapshot we use LVM.

warren


On 4/26/07, jan gestre <[EMAIL PROTECTED]> wrote:



On 4/25/07, Warren Beldad <[EMAIL PROTECTED]> wrote:
>
> jan,
>
> forget about making that script :-) there are lots out there.
> try rsnapshot. http://www.rsnapshot.org/
> it is written in perl script and still based in rsync.
> by the end of the week, your /backup folder will contain,
> daily.0
> daily.1
> daily.2
> daily.3
> daily.4
> daily.5
> daily.6
>
> you can also save it into weekly,monthly,etc...depends on your
> requirements.
> all you need to do is configure its config file, how many backup it will
> store, and the location of the source and destination......


hi warren,

rsnapshot seems interesting, i have a question though regarding its
configuration, according to rsnapshot.conf the snapshot_root directory is
in /.snapshots/ , can i change this to my setup i.e., i have an external
drive mounted manually named /backup. and also is it normal at this point
that the /.snapshots/ does not exist yet? i haven't run rsnapshot yet.

tia,

jan

warren
>
> On 4/25/07, jan gestre < [EMAIL PROTECTED]> wrote:
> >
> >
> >
> > On 4/24/07, Edel SM <[EMAIL PROTECTED] > wrote:
> > >
> > > have you tried rdiff-backup <http://www.nongnu.org/rdiff-backup/>?
> > > that's what i am using. i have my cron job running every 4am
> > > everyday.
> >
> >
> > i've read about it, my problem is to make an incremental backup script
> > that works :D
> >
> > On 4/24/07, jan gestre <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > On 4/24/07, Ian Dexter R. Marquez < [EMAIL PROTECTED] > wrote:
> > > > > Hi, Jan:
> > > > >
> > > > > The proof of the pudding is in the eating. ;) You'd have to test
> > > the
> > > > > script first, preferably in a nondestructive way.
> > > > >
> > > > > What I usually do is set up some mock directories, add some
> > > files and
> > > > > test the backup script.
> > > > >
> > > > > Looking at your script, since you're doing the backup locally,
> > > there's
> > > > > no need for the [EMAIL PROTECTED]: variables. There's also a
> > >
> > > > > syntax error in the $OPTS variable:
> > > > >
> > > > > > -backup-dir=$BACKUP_HOME/$BACKUPDIR -av"
> > > > >
> > > > > should be
> > > > >
> > > > > --backup-dir= ...
> > > > >
> > > > > Note the two leading dashes.
> > > > >
> > > > > It's also a good thing to set up all your variables at the start
> > > of
> > > > > the script. Call me an O.C. but here's what I would do:
> > > > >
> > > > > <script>
> > > > > #!/bin/sh
> > > > >
> > > > > SRCDIR=/home/d3m/source
> > > > > BAKHOME=/home/d3m/backup
> > > > > BAKDIR=`date +%A`
> > > > > LOGDIR=/home/d3m/log
> > > > > TMPDIR=/home/d3m/tmp
> > > > > OPTS="-av --force --ignore-errors --delete --backup
> > > > > --backup-dir=$BAKHOME/$BAKDIR"
> > > > > RSYNC=/usr/bin/rsync
> > > > >
> > > > > # Start
> > > > > date > $LOGDIR/backup.$BAKDIR.log
> > > > >
> > > > > # Cleanup
> > > > > [ -d $TMPDIR ] || mkdir $TMPDIR
> > > > > $RSYNC --delete -a $TMPDIR $BAKHOME/$BAKDIR
> > > > > rm -rf $TMPDIR
> > > > >
> > > > > # Backup
> > > > > $RSYNC $OPTS $SRCDIR $BAKHOME/current >>
> > > $LOGDIR/backup.$BAKDIR.log
> > > > >
> > > > > exit 0
> > > > > </script>
> > > > >
> > > > >
> > > > > > scenario is that the /home directory will be backed up using
> > > an external
> > > > > > hard drive attached to the local machine. i already formatted
> > > this drive
> > > > and
> > > > > > named the partition /backup, however i did not auto mount it
> > > using
> > > > fstab, is
> > > > > > it advisable to auto mount it?
> > > > >
> > > > > Provided that it is attached to the box, you can just mount it
> > > using
> > > > > the script, then unmount it afterwards. Quite useless if it's
> > > always
> > > > > attached, but safe nevertheless.
> > > > >
> > > > > Hope these help. Good luck with the script.
> > > > >
> > > > >
> > > > ian,
> > > >
> > > > i tried to run the script i posted but i got so many errors too
> > > many to
> > > > mention, dunno the proper syntax, i thought it came from trend's
> > > KB :D
> > > >
> > > > i'll give your's a try, will keep you posted. thanks.
> > > >
> > > >
> > > > jan
> > > >
> > > > _________________________________________________
> > > > Philippine Linux Users' Group (PLUG) Mailing List
> > > > [email protected] (#PLUG @ irc.free.net.ph)
> > > > Read the Guidelines: http://linux.org.ph/lists
> > > > Searchable Archives: http://archives.free.net.ph
> > > >
> > > _________________________________________________
> > > Philippine Linux Users' Group (PLUG) Mailing List
> > > [email protected] (#PLUG @ irc.free.net.ph)
> > > Read the Guidelines: http://linux.org.ph/lists
> > > Searchable Archives: http://archives.free.net.ph
> > >
> >
> >
> > _________________________________________________
> > Philippine Linux Users' Group (PLUG) Mailing List
> > [email protected] (#PLUG @ irc.free.net.ph)
> > Read the Guidelines: http://linux.org.ph/lists
> > Searchable Archives: http://archives.free.net.ph
> >
>
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> [email protected] (#PLUG @ irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
>


_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to