08.05.2024, 03:28 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
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.