LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2009, 09:28 AM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
How to copy partition everyday to a image


Hello
I have 2 partitions on my hard disk
1. sda1 is ext3 partitoins with MINT linux
2. sda2 ntfs partitions with my files and movies
I want to copy, make backup of my sda1 partitions and store it to file (image) in some folder in sda2.
In windows I have made that many times with Acronis and ghost, but I dont know how to make it in MINT.
I want to make a backup from sda1 to file in sda2 every 3 nights.
Is there some manual that explain that. I am very new to Linux
 
Old 09-01-2009, 09:46 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
I suggest using partimage to do the imaging. Crontab for scheduling.

Last edited by ongte; 09-01-2009 at 09:47 AM.
 
Old 09-01-2009, 10:17 AM   #3
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
One thing that worries me is that you are writing to a Windows drive. I checked the partimage website, and they do say how to do it, but caution you against it. If you have to write to the windows partition, I'd continue using ghost in Windows. Just my 2 cents worth.

If the purpose is to get backups of your partitions, I'd probably use an external hard drive anyway. Format it with ext2/3 and you can store the images there. You can even use that to backup your windows partition(s) also.
 
Old 09-01-2009, 06:28 PM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Fortunately partimage works fine writing to an NTFS partition. I've used it quite alot myself.
 
Old 09-02-2009, 12:38 PM   #5
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Yes, but with partimage you cannot schedule it, right?
I want to be automaticly
 
Old 09-02-2009, 12:50 PM   #6
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
I use rsnapshot, it takes a bit of work to set up, but once it's done you can forget about it.

From rsnapshot site:
Quote:
rsnapshot is a filesystem backup utility based on rsync. Using rsnapshot, it is possible to take snapshots of your filesystems at different points in time. Using hard links, rsnapshot creates the illusion of multiple full backups, while only taking up the space of one full backup plus differences. When coupled with ssh, it is possible to take snapshots of remote filesystems as well. This document is a tutorial in the installation and configuration of rsnapshot.
 
Old 09-02-2009, 01:06 PM   #7
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Hello mdg
Does this program can do backup during you use (run) Linux as ghost or acronis?
 
Old 09-02-2009, 01:09 PM   #8
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
If you mean does it run in the background, then yes it does.

The scheduling part is handled by cron. I set mine to run in the small hours of the morning, as my system tends to slow down a bit when the backup runs.
 
Old 09-02-2009, 01:21 PM   #9
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
No, I mean, if I have linux running in sda1, can I do backup from sda1 to sda2 running Linux? Can I backup currently partition?
 
Old 09-02-2009, 01:31 PM   #10
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Yes , you can. Keep in mind there are some things you don't want to back up in a currently running system, eg: /dev, /mnt.

edit:after reading your question again, for the sake of clarity, if sda2 is part of the same system that is running on sda1, I'm not sure that would work. I assumed sda2 was a partition which was not active at the same time as sda1.

If you're doing this to backup data, it doesn't make sense to backup to the same drive. If your drive breaks, it takes your backup with it.

Last edited by mdg; 09-02-2009 at 01:39 PM.
 
Old 09-02-2009, 01:42 PM   #11
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
And if I have some image done, and I cannot run Linux, can I copy then this image, so I can restore my Linux?
 
Old 09-02-2009, 01:51 PM   #12
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
I use it to backup data that is important to me. I don't know if it could be used to re-install (as a mirror image). Take a look at their website.

If my system was so broken that I had no way of fixing it, I would prefer to re-install from the install disk, rather than trust a backup of system files that would probably contain all the errors that collapsed the system originally.
 
Old 09-02-2009, 01:53 PM   #13
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
I installed it, but I dont know how to run it.
Can you tell me how can I open it?
 
Old 09-02-2009, 02:01 PM   #14
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
The rsnapshot how-to will tell you what you need to know. It takes some configuring to get it set up. Read up on what needs to be done and post any specific questions you may have.
 
  


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
cp of dd image failed, better to mount image and then copy? bmcws Linux - Newbie 5 06-23-2009 06:41 PM
Copy Contents of LVM Partition to Another Partition With a Different File System tmort Linux - General 3 03-07-2008 05:00 AM
LXer: Copy hard disk or partition image to another system using a network and netcat LXer Syndicated Linux News 0 08-12-2007 03:11 PM
Best way to copy image to a DVD-RW and then restore to a new partition? Shadoglare Linux - General 5 03-10-2007 12:37 AM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 PM.

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