LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2008, 01:37 AM   #16
zeeshanhayat
Member
 
Registered: Oct 2004
Distribution: Fedora, Debian, Free BSD
Posts: 71

Rep: Reputation: 15

Ever tried Clonezilla. I think its the best available Open Source option to create Norton Ghost like images.
 
Old 03-22-2008, 09:17 PM   #17
jogurnog
Member
 
Registered: Feb 2008
Distribution: Ubuntu 8.04, Slackware 12.1
Posts: 40

Original Poster
Rep: Reputation: 15
Wink

ok this is my current situation:
  • I've split /media/HARD DRIVE into 4 partitions; disk-1, disk-2, disk-3 and the original partition with my Vista backup is in there. (using GParted)
  • used mkdir /backup (was i to use it under a 'cd /media/disk-2' ?)
  • ive written the code in /etc/fstab ( /dev/sda3 /backup ext3 defaults 0 2 )

ready for next orders, please and thank you
 
Old 03-23-2008, 03:43 PM   #18
jogurnog
Member
 
Registered: Feb 2008
Distribution: Ubuntu 8.04, Slackware 12.1
Posts: 40

Original Poster
Rep: Reputation: 15
bump bump bump
 
Old 03-23-2008, 03:51 PM   #19
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
If you haven't already formated /dev/sda3 then do so now:

umount /dev/sda3
mkfs.ext3 /dev/sda3
mount -t ext3 /dev/sda3 /backup


Now decide on how many versions of the backup you are going to keep. Issue the du command for every partition you plan to back up. For example if you have / and /home partitions you would use:

du -s -h -x /
du -s -h -x /home

This will give you the total amount of space needed for a single generation of your backup. Then set up directories in /backup for how many generations of backup you want to keep. If you want to keep two generations then you need:

mkdir /backup/backup1
mkdir /backup/backup2

Then you need to create scripts for each backup generation. Note that if you backup / you can get into an iteration problem by attempting to backup /backup to /backup/backup1 or /backup/backup2. So you need to use the -x option in cp which tells cp to not cross partition mount points. Using -x also means that if you have your system in more than one partition you will need a cp command for each partition.

cp -aux / /backup/backup1
cp -aux /home /backup/backup1

and the second script:

cp -aux / /backup/backup2
cp -aux /home /backup/backup2

In the above example I am not sure if the /home mount point will be copied by the cp / command. If it isn't then try:

cp -aux / /backup/backup1
if test ! -d /backup/backup1/home;
then
mkdir /backup/backup1/home
fi
cp -aux /home /backup/backup1


Once you decide how many versions you want and how many scripts you need then we can work on automating those scripts through cron.

---------------------
Steve Stites
 
Old 03-23-2008, 03:54 PM   #20
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by jogurnog View Post
  • I've split /media/HARD DRIVE into 4 partitions; disk-1, disk-2, disk-3 and the original partition with my Vista backup is in there. (using GParted)
  • used mkdir /backup (was i to use it under a 'cd /media/disk-2' ?)
  • ive written the code in /etc/fstab ( /dev/sda3 /backup ext3 defaults 0 2 )
/backup should be in your / partition so you don't need to cd to anywhere to create /backup:

mkdir /backup

----------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Howto Backup 3.4 To Install 6.0? GNewbie MEPIS 2 07-28-2006 02:11 PM
howto backup & recover many pc's bucovaina78 Linux - General 6 01-22-2006 02:30 AM
cron & backup howto ? crispyleif Linux - Software 4 11-23-2005 01:26 PM
Howto disable backup file cration VertX Linux - Newbie 1 02-05-2005 06:56 AM
DVD backup: howto copy subtitle streams?? psychotron1 Linux - General 6 01-24-2005 01:34 PM


All times are GMT -5. The time now is 01:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration