24 Fév 2026 - 01:42Deutsch | English
Bonjour visiteur [ Register | Identification ]

Poster un nouveau sujet   Répondre au sujet
Voir le sujet précédent Version imprimable Se connecter pour vérifier ses messages privés Voir le sujet suivant
Auteur Message
gardyloo
Sujet du message:   MessagePosté le: 05 Jl 2006 - 20:32



Inscrit le: 14 Avr 2006
Messages: 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.
 
 Voir le profil de l'utilisateur Envoyer un message privé  
Répondre en citant Revenir en haut
Swynndla
Sujet du message:   MessagePosté le: 06 Jl 2006 - 02:23



Inscrit le: 05 Déc 2005
Messages: 414
Localisation: 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.
 
 Voir le profil de l'utilisateur Envoyer un message privé  
Répondre en citant Revenir en haut
Swynndla
Sujet du message:   MessagePosté le: 06 Jl 2006 - 03:54



Inscrit le: 05 Déc 2005
Messages: 414
Localisation: Auckland, New Zealand
I just tested that, and it works.

_________________
Linux is evolution, not intelligent design - Linus Torvalds
 
 Voir le profil de l'utilisateur Envoyer un message privé  
Répondre en citant Revenir en haut
2radical
Sujet du message:   MessagePosté le: 06 Jl 2006 - 06:55



Inscrit le: 07 Déc 2005
Messages: 369
Localisation: 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
 
 Voir le profil de l'utilisateur Envoyer un message privé  
Répondre en citant Revenir en haut
Montrer les messages depuis:     
Sauter vers:  
Toutes les heures sont au format GMT + 1 Heure
Poster un nouveau sujet   Répondre au sujet
Voir le sujet précédent Version imprimable Se connecter pour vérifier ses messages privés Voir le sujet suivant
PNphpBB2 © 2003-2007 
Traduction par : phpBB-fr.com
 
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.