LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-20-2004, 03:48 PM   #1
Mr. Slappy
LQ Newbie
 
Registered: Oct 2004
Location: at home with a warm laptop
Distribution: Ubuntu, CentOS, Solaris
Posts: 24

Rep: Reputation: 15
Question Backing up my laptop


Hi all-

I have been running Slackware on my Thinkpad since version 10 of Slackware came out and I am looking for the best way to backup my important information. I have done some googling (or googleing?) and I like the idea of just using Tar, but I am confused as to witch parameters to use. Can someone give me a little help. I would like to back up to an SMB share on my home network. Also is this the best route to take or would you recommend a better solution.

Thanks for your help

Mr. Slappy

 
Old 10-20-2004, 05:49 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
tar -cf /smb_mounted_dir/backup.tar /path/to/files_you_want_backed_up/*

or some variation thereof

You can use the -P switch in addition if you only ever want to restore the files to their current location, but I've never used it.

Last edited by Samsara; 10-20-2004 at 05:50 PM.
 
Old 10-20-2004, 06:42 PM   #3
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
An idea, make an +x script and drop it in your /etc/cron.daily. mkdir /var/backup. /var is where this type of things should go if kept locally.
My laptop hostname is mustang.

#!/bin/sh
backupwhat="/root /home /etc"
backuplocation="/var/backup/"
backupname="backup-mustang-$(date +%m-%d-%y)"
backupexclude=""

tar cvzf $backuplocation$backupname.tar.gz $backupwhat --exclude=$backupexclude

# This is up to you to add.
# if you are always connected to your samba share.
mv $backuplocation$backupname.tar.gz /mnt/samba
# or mount the samba share and move/copy whenever you want to.

My mirrored server stores all backups. I have a script to remove backups > 2-weeks.
 
Old 10-20-2004, 06:57 PM   #4
Mr. Slappy
LQ Newbie
 
Registered: Oct 2004
Location: at home with a warm laptop
Distribution: Ubuntu, CentOS, Solaris
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for the assistance. I will give it a try when I get home. One more question because Gnome is confusing me -
I am using Gnome as my desktop and I use it to view my windows network and transfer files that way. What I cant find is where this is mounted (looked in /mnt ). Or is this mounted?

Mr. Slappy
Still a slave of the GUI
lol
 
Old 10-20-2004, 07:09 PM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
try 'mount' without argument on a terminal to see what is actually mounted in your system

also look at your smb.conf, it is the file where samba mount points are configured
 
Old 10-20-2004, 07:33 PM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
keep in mind the op is wanting to look at a Windows box. The smb.conf sets up the server side, (*nix box). The samba client is usually built in the kernel and the samba server isn't needed to look at Windows.

For *nix -> Windows;
smbmount //<hostname>/share /mnt/<something>
ie: smbmount //corvette/me /mnt/corvette

Don't forget to;
smbumount /mnt/<something>

I haven't used gnome in a while, but in nauti??? file manager you can type in the location bar;
smb:/
or
smb:///

edit;
One more cool thing, to see what's on the Windows box, or on the network, you can enter ;
smbtree

then enter the the user's password and you see everything available.

Last edited by -X-; 10-20-2004 at 07:59 PM.
 
Old 10-21-2004, 10:44 AM   #7
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
I'm surprised that no one has mentioned rsync

Code:
rsync -a --progress --exclude=*.iso  /home/dennisk/ /mnt/usbkey/dennisk
is what I use to backup a copy of my home directory on my laptop to an external USB hard drive. The "exclude" option skips the 10-15Gb of Linux distros I keep hany to burn copies for our monthly InstallFest.

You can add the "--delete" option if you want files that are deleted from the home directory to also be deleted from the backup.

Even though my laptop doesn't have the faster USB 2.0 ports this works quite well.

Dennisk
 
Old 10-21-2004, 11:10 PM   #8
Mr. Slappy
LQ Newbie
 
Registered: Oct 2004
Location: at home with a warm laptop
Distribution: Ubuntu, CentOS, Solaris
Posts: 24

Original Poster
Rep: Reputation: 15
Thank You all.

I like the rsync option and will give that a try. Does this work in reverse. Let's say I make a backup and end up hoseing my home directory can I

Code:
rsync -a --progress --exclude=*.iso  /mnt/usbkey/dennisk /home/dennisk/
Also this is uncompressed right?

Mr. Slappy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing Up RH 6.1 Lilbudha Red Hat 1 05-20-2005 06:12 AM
backing-up? jamaso Slackware 5 06-16-2004 08:03 AM
Backing up Cichlid Linux - General 1 12-16-2002 10:03 PM
backing up dilberim82 Linux - General 6 10-30-2001 09:46 PM
backing up files on a laptop trusouthrnplaya Linux - General 3 09-03-2001 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration