[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Cobalt RaQ3 Backup



Hello Simon,

Do a man tar at your telnet prompt and you will get all the details on the
option settings for tar.

I am completing a perl script that you can put into cron for daily backup.
Should be completed today.

The beta version is working great. Just doing some minor change to create
multi session and mutil volume.

The tar options -cvfzp are as follows:

c: create a file
v: verbose, i.e. all file tarred will be echo back at the prompt assuming
you are doing doing from telnet/ssh
p: preserve the permission setting of the files
z: gun zip the tar file

you may also want to add "r" for recursive, i.e. all the sub-directory below
the directory you mentioned.

Have fun.

Denis
DIGS Ltd
www.digs.ca


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Simon Pierce
Sent: March 1, 2002 12:43 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] Cobalt RaQ3 Backup


Hi everyone,

Thanks for all the help. Whilst I understand what you're saying, not being
technical I don't know how to put it into practice.

Is it possible someone could explain what the 'p' switch and -cvpf are, or
possibly edit the instructions below to implement them?

I'm so sorry if I sound really thick, but Linux isn't my strong point! Any
help would be very graciously appreciated!

Si


> >
> > 1)Telnet in and su to root.
> >
> > cd /etc
> > tar cvfW /home/etc.tar .
> > cd /var
> > tar cvfW /home/var.tar .
> > cd /usr/admserv
> > tar cvfW /home/usr-admserv.tar .
> > cd /usr/local
> > tar cvfW /home/usr-local.tar  .
>
> I would add the p switch to tar to save the permissions on all files.
>
> > /home/log/httpd/ # httpd log files
> > /home/spool/ # user mail spools and crontab spools
> > /root/ # root's user directory
> > /home/sites/ # site files and user files
> >
> > 2)FTP tars to a safe place.
> > 3)Disaster hits!!!!!!!!!
> > 4)Upload tars to a new RaQ
> >
> > Telnet in and su to root
> > cd /etc
> > tar xvf /home/sites/home/users/admin/etc.tar
> > cd /var
> > tar xvf /home/sites/home/users/admin/var.tar
> > cd /usr/admserv
> > tar xvf /home/sites/home/users/admin/usr-admserv.tar
> > cd /usr/local
> > tar xvf /home/sites/home/users/admin/usr-local.tar
> >

We've tried the above method and it has worked nicely although don't forget
about /home .

The command tar -cvpf will be better suited in order to keep the file
permissions and ownership in tact.

Mike

> j
> --
> http://www.bizmanuals.com
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users