14.06.2025, 03:17 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
michael7
Titel: LVM  BeitragVerfasst am: 28.06.2006, 01:05 Uhr



Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
kenyee,

Thanks for the information on LVM. I'll check into it.

_________________
Debian Social Contract
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
beavis
Titel: RE: Backup and restore with rdiff-backup  BeitragVerfasst 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.
 
 Benutzer-Profile anzeigen Private Nachricht senden ICQ-Nummer 
Antworten mit Zitat Nach oben
michael7
Titel: LVM HowTo  BeitragVerfasst am: 29.06.2006, 23:59 Uhr



Anmeldung: 24. Mai 2005
Beiträge: 354
Wohnort: Nashville
@kenyee
Here's a simple HowTo that I found about LVM:
http://www.debian-administration.org/articles/410

@beavis
I checked out sbackup. Interesting. Thank you for mentioning it. It has a nice, clean GUI, however, it is written for Gnome. Traurig

I found another, pyBackPack, but it's written for Gnome as well. https://sucs.org/~davea/trac

_________________
Debian Social Contract
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
kenyee
Titel: RE: LVM HowTo  BeitragVerfasst am: 30.06.2006, 03:14 Uhr



Anmeldung: 21. Jan 2006
Beiträge: 185

Here are a few more michael7, but these assume you're going to use the installer:
http://www.planamente.ch/emidio/pages/l ... m_raid.php
http://dev.jerryweb.org/raid/
http://wiki.archlinux.org/index.php/Ins ... AID_or_LVM

The tricky part was getting Kanotix migrated over and one of my postings a while back covers this...
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
jackiebrown
Titel: RE: LVM HowTo  BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst 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. Winken 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
devil
Titel:   BeitragVerfasst am: 04.07.2006, 08:32 Uhr
Team Member
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 ]
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Swynndla
Titel:   BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
h2
Titel:   BeitragVerfasst 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.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
gardyloo
Titel:   BeitragVerfasst am: 05.07.2006, 20:32 Uhr



Anmeldung: 14. Apr 2006
Beiträge: 60

Just to add to the thread, I've used rdiff-backup for several months (I worked hard to get the latest -- 1.1.5 -- version installed on several different distros; SUSE was difficult to get that on there, but I did) and there's no problem with more than three '--exclude' additions.

To one of the original posters, 'keep' is helpful for getting a GUI for rdiff-backup, but I find that getting it to run very consistently (at least in the current incarnation) is more difficult than using rdiff-backup itself.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Swynndla
Titel:   BeitragVerfasst am: 06.07.2006, 02:23 Uhr



Anmeldung: 05. Dez 2005
Beiträge: 414
Wohnort: Auckland, New Zealand
I use rdiff-backup version 1.1.5 too ... and I don't have a problem with multiple excludes (eg for my root partition I use --exclude '/tmp/*' --exclude '/proc/*' --exclude '/sys/*' --exclude '/media/*/*' ) ... but I do agree that it's messy, and using --exclude-globbing-filelist is a great idea Smilie

BTW - note the cunning use of '/tmp/*' instead of '/tmp' (not that I was cunning, someone else pointed it out to me) ... the /tmp directectory name is backed up, but none of the files/directories in it are backed up ... so it means that on a restore, the /tmp directory is restored as an empty directory (which is what I want) and with the permissions set right. If I used '/tmp' instead, then when I restore the partition, /tmp directory will be missing, and X will not boot up, but will complain bitterly. (I'd have to create the directory and set the permission right, and I'd have to try to remember how to set the special sticky flag that this directory has) This cunning trick is used for the other excludes listed above too (and the extra cunning '/media/*/*' ... eg /media/dvd will exist as a mount point). This means that when I do a restore of my root partition, everything works.

Ahhh yes the man page is great ... I love man pages that have actual examples.

I see the man page says to put quotes around directory globs on the command line (eg '/tmp/*' instead of just /tmp*) as it says:
"Remember that you may need to quote these characters when typing them into a shell, so the shell does not inter-pret the globbing patterns before rdiff-backup sees them."
... but the exclude-globbing-filelist file should not have the quotes the quotes around the directory glob names (according to the man page, although I haven't tested this).

So I could have is a file called "globbing-list.txt" (put in /root/ say)
- /tmp/*
- /proc/*
- /sys/*
- /media/*/*

... then all I'd need to call to back up my root partition is:
rdiff-backup --exclude-globbing-filelist /root/globbing-list.txt / /media/hdb1/rdiff-backups/192.168.1.5/root

Much nicer.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Swynndla
Titel:   BeitragVerfasst am: 06.07.2006, 03:54 Uhr



Anmeldung: 05. Dez 2005
Beiträge: 414
Wohnort: Auckland, New Zealand
I just tested that, and it works.

_________________
Linux is evolution, not intelligent design - Linus Torvalds
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 06.07.2006, 06:55 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
My Easter installation is trashed. Boot errors, can't print, /etc/fstab was written wrong, have to start all over disabling all journaling & delete partitions. What a nightmare. It'll be my 4th attempt at installation. Ho-hum have to put everything else on hold till things are fixed. Keeping my fingers crossed.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.