Autor |
Nachricht |
|
Titel: Backup Kanotix System
Verfasst am: 26.06.2006, 06:30 Uhr
|
|

Anmeldung: 13. Jun 2006
Beiträge: 43
|
|
After satisfied for all setting like fstab, grub, file system, sofware, and etc, i think we better do backup .How to backup them ? In other way, how to backup KanotiX system ? In suse, we know that YasT can do that, how about in KanotiX ? I can Backup the whole partison using norton ghost, so that if something goes wrong, i can restore back, but it's take alot of time and space....  |
_________________ ·-»‡«=·-mêmÕ®ïå£_å¥ië28-·=»‡«=·-
We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.
|
|
|
|
 |
|
Titel: Backup Kanotix System
Verfasst am: 26.06.2006, 06:36 Uhr
|
|
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
|
|
backup is easiest with cp command. a possible line is:
cp -avx /your/home /your/backup/dir
look at man cp for more options.
as an alternative look at:
http://kanotix.com/FAQ-id_cat-70.html
greetz
devil |
_________________ <<We are Xorg - resistance is futile - you will be axximilated>>
Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
|
|
|
|
 |
|
Titel: RE: Backup Kanotix System
Verfasst am: 26.06.2006, 06:46 Uhr
|
|

Anmeldung: 13. Jun 2006
Beiträge: 43
|
|
Thanks, i'll try that first... |
_________________ ·-»‡«=·-mêmÕ®ïå£_å¥ië28-·=»‡«=·-
We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.
|
|
|
|
 |
|
Titel: RE: Backup Kanotix System
Verfasst am: 26.06.2006, 06:53 Uhr
|
|

Anmeldung: 13. Jun 2006
Beiträge: 43
|
|
Ok, let say i've done the backup succesfully. and something goes wrong, i cant even log in gui, so, how to restore back from terminal ? |
_________________ ·-»‡«=·-mêmÕ®ïå£_å¥ië28-·=»‡«=·-
We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.
|
|
|
|
 |
|
Titel: RE: Backup Kanotix System
Verfasst am: 26.06.2006, 07:21 Uhr
|
|
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
|
|
what did you do exactly?
greetz
devil |
_________________ <<We are Xorg - resistance is futile - you will be axximilated>>
Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
|
|
|
|
 |
|
Titel: RE: Backup Kanotix System
Verfasst am: 26.06.2006, 07:42 Uhr
|
|

Anmeldung: 13. Jun 2006
Beiträge: 43
|
|
now, not yet, i can log in smoothly...but, who knows ....last time it happens after im using apt-get install..... |
_________________ ·-»‡«=·-mêmÕ®ïå£_å¥ië28-·=»‡«=·-
We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.
|
|
|
|
 |
|
Titel: RE: Backup Kanotix System
Verfasst am: 26.06.2006, 08:16 Uhr
|
|
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
|
|
ah, got you wrong, sry.
just copy back from terminal
btw, if you cp /home, just do the user(s) in your home, not home itself
greetz
devil |
_________________ <<We are Xorg - resistance is futile - you will be axximilated>>
Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
|
|
|
|
 |
|
Titel: RE: Backup Kanotix System
Verfasst am: 26.06.2006, 10:02 Uhr
|
|

Anmeldung: 13. Jun 2006
Beiträge: 43
|
|
oh ok, thanks... |
_________________ ·-»‡«=·-mêmÕ®ïå£_å¥ië28-·=»‡«=·-
We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.
|
|
|
|
 |
|
Titel: Re: Backup Kanotix System
Verfasst am: 27.06.2006, 01:44 Uhr
|
|
Anmeldung: 09. Aug 2004
Beiträge: 121
Wohnort: Brisbane Australia
|
|
devil28 hat folgendes geschrieben::
cp -avx /your/home /your/backup/dir
In general devil28, rsync is better for copies which you are likely to do repeatedly such as a backup. i.e.
Code:
rsync -avxH --delete /your/home /your/backup/dir
is better than cp here because it creates a mirror of the source but only actually updates (and deletes) what changes on second and subsequent invocations. |
|
|
|
|
 |
|
Titel:
Verfasst am: 27.06.2006, 04:48 Uhr
|
|

Anmeldung: 13. Jun 2006
Beiträge: 43
|
|
If we used this command >rsync -avxH --delete /your/home /your/backup/dir , how to restore them back ? |
_________________ ·-»‡«=·-mêmÕ®ïå£_å¥ië28-·=»‡«=·-
We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.
|
|
|
|
 |
|
Titel:
Verfasst am: 27.06.2006, 15:39 Uhr
|
|
Anmeldung: 16. Aug 2004
Beiträge: 1905
|
|
Switch source and target (and most probably leave out --delete, unless you really want to do it - take care of the trailing slashes). |
|
|
|
|
 |
|
Titel: rdiff-backup
Verfasst am: 27.06.2006, 16:15 Uhr
|
|

Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
|
|
This is a topic in which I'm interested. Here's a webpage about rdiff-backup that you may find helpful:
http://arstechnica.com/articles/columns ... 0202.ars/2
I have two hard drives on my computer. I wanted to backup my /home directory which is on the first hard drive to another partition on the second hard drive at hdb6. Here are the commands that I used:
Code:
mick@KanotixBox:~$ su
Password:
root@KanotixBox:/home/mick# mount /media/hdb6
root@KanotixBox:/home/mick# rdiff-backup /home/mick /media/hdb6/backup
(This is the much simplified version of the FAQ that devil28 mentioned above, which Swynndla wrote.) |
_________________ Debian Social Contract
|
|
|
|
 |
|
Titel: RE: rdiff-backup
Verfasst am: 27.06.2006, 18:54 Uhr
|
|
Anmeldung: 12. Mar 2005
Beiträge: 1005
|
|
One thing needs to be modified with the faq on rdiff-backup, the last time I tried it, with a heavily modified version of that method, I found that rdiff-backup was only accepting one --exclude item. Previously, as in the sample on the faq page, it was accepting 2 or 3 before it would exit with a failure code. When I changed those two --exclude items to use the
rdiff-backup --exclude-globbing-filelist fileofexcludes.txt /backupsource /backupdestination
method instead, with the excluded files/directories in an external list, it worked fine again.
rdiff-backup works really well once you understand how to implement it, the easiest is to just write a small shell script to create the backup, with all your options preset.
I do four separate backups in mine, root, home, plus two different data partitions.
Plus the script accepts a parameter so I can write to one of two backup directories, which lets me alternate them when I feel like it, but that isn't necessary for a simple install, usually backing up the root directory and the home directory is all that is required for most users. |
|
|
|
|
 |
|
Titel: Backup and restore with rdiff-backup
Verfasst am: 27.06.2006, 20:32 Uhr
|
|

Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
|
|
For my Kanotix installation, I have two partitions-- root and home. Initially, I made the root partition 10 GB and that has proved to be ample. For home, however, I used a 20 GB partition and after more than a year of creating and downloading files, I found that I was running out of space.
I needed to increase the size of my /home partition without breaking my installation because I've put a lot of work in it and it's running sweet (like a slice of cold watermelon on a hot Tennessee summer day ). Using the rdiff-backup command, my Kanotix Easter Edition LiveCD, and the gparted program, I pulled it off without a hitch. Here's what I did.
First, I used rdiff-backup to make a backup copy of my /home partition on another partition of a second hard drive. (I backed up my /root partition, too, just to be safe.)
hda1 (primary)-- /
hda3 (primary)-- /home
hda5 (logical)-- unused partition
hdb6 (logical)-- partition on another harddrive used for backup
Code:
mick@KanotixBox:~$ su
Password:
root@KanotixBox:/home/mick# mount /media/hdb6
root@KanotixBox:/home/mick# cd /media/hdb6
root@KanotixBox:/media/hdb6# mkdir rdiff-backups
root@KanotixBox:/media/hdb6# mkdir rdiff-backups/root
root@KanotixBox:/media/hdb6# mkdir rdiff-backups/home
root@KanotixBox:/media/hdb6# cd /home/mick
root@KanotixBox:/home/mick# rdiff-backup /home /media/hdb6/rdiff-backups/home
root@KanotixBox:/home/mick# rdiff-backup --exclude '/tmp/*' --exclude '/proc/*' --exclude '/sys/*' --exclude '/media/*/*' / /media/hdb6/rdiff-backups/root
Next, I rebooted using my gparted.iso disk. ("gparted" stands for Gnome Partition Editor. I first used it after h2 recommended it and found it to be better than qtparted.) With gparted, I deleted my /home partition and hda5, an unused partition after it, created a new, larger /home partition and a smaller hda5 partition.
Then I rebooted using my Kanotix Easter Edition LiveCD and restored the /home directory to hda3 with these commands:
Code:
knoppix@0[knoppix]$ su
root@0[knoppix]# mount /media/hdb6
root@0[knoppix]# mount /media/hda3
root@0[knoppix]# rdiff-backup -r now /media/hdb6/rdiff-backups/home
/media/hda3
root@0[knoppix]#
You can find most of this at the FAQ that devil mentioned:
http://kanotix.com/FAQ-id_cat-70.html
The entire procedure took about 30 minutes and went very smoothly. No problems whatsoever. |
_________________ Debian Social Contract
|
|
|
|
 |
|
Titel: RE: Backup and restore with rdiff-backup
Verfasst am: 27.06.2006, 23:29 Uhr
|
|
Anmeldung: 21. Jan 2006
Beiträge: 185
|
|
michael7: have a look at LVM if you haven't (I also posted a how-to convert Kanotix to LVM a while back). There's no need to repartition w/ LVM...you just add more space to a partition (live) as you need to. My / was initially 2GB but I found I was running out of space w/ kernel installs, so I bumped it to 2.5GB. No downtime at all and it was painless. Try to stick w/ ext3, ReiserFS, and XFS for partitions though... |
|
|
|
|
 |
|
Titel: LVM
Verfasst am: 28.06.2006, 01:05 Uhr
|
|

Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
|
|
|
|
 |
|
Titel: RE: Backup and restore with rdiff-backup
Verfasst am: 28.06.2006, 15:19 Uhr
|
|

Anmeldung: 08. Apr 2004
Beiträge: 431
|
|
You could use sbackup, it uses rdiff to catch daily (or weekly etc) changes in the chosen directories. |
|
|
|
|
 |
|
Titel: LVM HowTo
Verfasst am: 29.06.2006, 23:59 Uhr
|
|

Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
|
|
|
|
 |
|
Titel: RE: LVM HowTo
Verfasst am: 30.06.2006, 03:14 Uhr
|
|
Anmeldung: 21. Jan 2006
Beiträge: 185
|
|
|
|
 |
|
Titel: RE: LVM HowTo
Verfasst am: 30.06.2006, 04:19 Uhr
|
|
Anmeldung: 13. Mai 2005
Beiträge: 732
Wohnort: Texas
|
|
well it is for local backups but I like grsync (also written for gnome) After the first backup it only updates new files or changed files. Makes things fast. |
_________________ Always acknowledge a fault. This will throw those in authority off their guard and give you an opportunity to commit more.
Mark Twain
|
|
|
|
 |
|
Titel:
Verfasst am: 03.07.2006, 22:11 Uhr
|
|
Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
|
|
Now that I've got my printing restored, I need to do a backup. I've read the FAQ's, examples, other threads, etc & am still confused. My brain is 57 yrs. old, so I need a little help understanding. Plus I don't want to screw up doing this.
/media/hda5 is my main system & I want to create a backup to /media/hda6. Do I need to make a backup directory in hda6 beforehand? If so, would this be correct?
mkdir /media/hda6/backups
Also, does this look correct for making the backup?
rdiff-backup --exclude /tmp/* --exclude /proc/* --exclude /sys/* --exclude /media/*/* /media/hda5 /media/hda6/backups (assuming I have to make a backup directory)
To restore, do I have to use a live-CD and have the partitions unmounted, or mount both?
Does this look like it will do the job?
rdiff-backup -r now /media/hda6/backups /media/hda5
I'm probably overlooking some things I should include, but don't know what. Thanks in advance--kurt |
_________________ illegitimati non carborundum
|
|
|
|
 |
|
Titel:
Verfasst am: 04.07.2006, 08:32 Uhr
|
|
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
|
|
kurt,
from the top of my 5 year younger brain:
i think, there is a bug with rdiff, when you use more then 1 --exclude.
there is a thread on the forum (use find) about that by H2.
but you dont really need the excludes or 1 should be enough.
greetz
devil |
_________________ <<We are Xorg - resistance is futile - you will be axximilated>>
Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
|
|
|
|
 |
|
Titel:
Verfasst am: 05.07.2006, 11:27 Uhr
|
|

Anmeldung: 05. Dez 2005
Beiträge: 414
Wohnort: Auckland, New Zealand
|
|
@2radical ...
- Yep, make a backup directory (actually you may not have to, but I dunno if it'll work or not).
- Make sure that /media/hda6 is bigger than (ie is a larger partition ... ie more free space than) /media/hda6 ... as hda6 must not only hold an existing copy, but also some incremental backups.
- For backing up, what you wrote:
rdiff-backup --exclude /tmp/* --exclude /proc/* --exclude /sys/* --exclude /media/*/* /media/hda5 /media/hda6/backups
looks almost fine ... but I put the exclude directories in quotes, so you'd have:
rdiff-backup --exclude '/tmp/*' --exclude '/proc/*' --exclude '/sys/*' --exclude '/media/*/*' /media/hda5 /media/hda6/backups
The reason for the quotes is, well it's been a while since I've studied rdiff-backup ... but (and this is true for all bash scripts) it's so the rdiff-backup will be passed the * ... otherwise bash with expand it before it passes the arguments to rdiff-backup. The rdiff-backup wants the * so it can do the expanding itself. (but for all I know, rdiff-backup may work for you without the quotes, I can't rememer, but I wouldn't recommend it)
I've had to do a lot of backing up and restoring lately, and I havent had any issues with multiple excludes yet (but I'll watch out for it) (and make sure you use the quotes).
- To restore, yes, boot up via a live-CD, and mount both partitions. Then you can do just what you said:
rdiff-backup -r now /media/hda6/backups /media/hda5
(no excludes neccessary if you boot up from a live cd ... make sure you do or you may lose all your data like I did when I was experimenting!) |
_________________ Linux is evolution, not intelligent design - Linus Torvalds
|
|
|
|
 |
|
Titel:
Verfasst am: 05.07.2006, 16:55 Uhr
|
|
Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
|
|
Thanks for your reply. I've installed Easter & have a different partition scheme now, & am having a few difficulties. But thanks for the info. Once I get things straightened out I will be using it. |
_________________ illegitimati non carborundum
|
|
|
|
 |
|
Titel:
Verfasst am: 05.07.2006, 19:33 Uhr
|
|
Anmeldung: 12. Mar 2005
Beiträge: 1005
|
|
devil, yes, the last time I used the latest rdiff-backup it no longer supported multiple --excludes.
However, even the first times I tested it there was a limit of I think 3 excludes before it would exit with errors. So the solution is to just use the:
--exclude-globbing-filelist
option, which calls a text file of excludes. Using a text file is a lot easier long term, and isn't as cluttered, and doesn't trigger whatever limit rdiff-backup has in the most recent version.
That's a much more flexible way to do it too, it allows within that file both includes and excludes, which can be very useful, for example, say you want to exclude all of /var/www except for 1 directory, you can simply say in the text file:
/var/www
+ /var/www/somefolder
The rdiff-backup manfile is unusually helpful and clear by the way, it's actually all you need to get rdiff-backup running.
Zitat:
Lines starting with "+ " are interpreted as include directives, even if found in a filelist referenced by --exclude-filelist. Similarly, lines starting with "- " exclude files even if they are found within an include filelist.
|
|
|
|
|
 |
|