• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Linux Backup, How do you do it? Sample scripts please

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux

View previous topic :: View next topic  
Author Message
ShaolinTiger
Forum Fanatic
Forum Fanatic


Joined: 18 Apr 2002
Posts: 16777215
Location: Kuala Lumpur, Malaysia

Offline

PostPosted: Thu Jan 09, 2003 3:01 pm    Post subject: Linux Backup, How do you do it? Sample scripts please Reply with quote

Debian 3.0 here, but distro isn't really important.

Appears I have a SCSI DLT 2000 (I think? 20/40GB)

I've got it working (sort of), I can rewind it and stuff.

What the deal with backing up, how do you do it?

Do you mount //[b][/b]dev[b][/b]/st0 then tar or cpio or dd or straight copy?

Any scripts or ideas welcome.

I also have Arkeia v5 here, but I don't really want to get stuck with a propietary format, as tar can be opened on anything I feel that's good.

I could backup from the Win2k DC but the tape is almost full as it is, so I'd prefer to use this DLT.

Cheers
Back to top
View user's profile Send private message Visit poster's website
squidly
Trusted SF Member
Trusted SF Member


Joined: 07 Oct 2002
Posts: 16777215
Location: Umm.. I dont know.. somewhere

Offline

PostPosted: Thu Jan 09, 2003 10:45 pm    Post subject: Reply with quote

A dd will not work for backing up. What I do when I'm trying to back up my computer with a tape drive is I do this.
Mount the tape, with MT go to the end of the last archive. Then tar -cf //[b][/b]dev[b][/b]/st0 /dirs/to/be/backed/up. That is good for a base line backup.

If you want an incremiental back up you could to a

find --cnewer /root/when_backups_were_done -type dfl -xargs {tar -cf //[b][/b]dev[b][/b]/st0 -} ;
cat `date` > /root/when_backups_were_done;

Im not sure the command line on that is right but that is the basic idea. There are some programs out there that can do an incrimental backup. Check online.secuirtyfocus.com there are some utils there for unix/linux backups

P.S do you know of any good IDE tape drives??
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vlad902
Just Arrived
Just Arrived


Joined: 04 Jan 2003
Posts: 0


Offline

PostPosted: Fri Jan 10, 2003 4:38 am    Post subject: Reply with quote

What do I do is a
cp -pR /blah/blah /backup
tar -cvf /backup.tar /backup
bzip2 /backup.tar

Thats all for me
Back to top
View user's profile Send private message
squidly
Trusted SF Member
Trusted SF Member


Joined: 07 Oct 2002
Posts: 16777215
Location: Umm.. I dont know.. somewhere

Offline

PostPosted: Fri Jan 10, 2003 5:14 am    Post subject: Reply with quote

That will work while you have disk space and you are not doing an incrimental backup. That is why I put the find && cat script.

and to save typeing you can %tar -ycf backup.tar /backup
Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
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

Community Area

Log in | Register