Discussion:
[BackupPC-users] Exclude from backup
Vladislav Tchernev
2009-06-26 15:00:08 UTC
Permalink
Hi All,
I am new to backuppc and was trying to figure out how to exclude dir/files
from a backup. I have played around with the GUI, setting
Xfer->BackupFilesExclude and Xfer->RsyncArgs (--exclude="..."), as well as
directly editing the conf files (the global and the host specific ones) but
without success. What I have tried to do is to exclude /proc but it seems I
can't manage to get rid of it since the error log keeps complining about it.
Bellow are some settings (I ended setting thouse directly in the config.pl) I
have tried.

FYI: Am using backuppc-3.1.0-3 on Ubuntu 8.10

Thanks for your helps!
Vlad

#1
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude="/proc"'

#2
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude', '/proc'

#3
$Conf{BackupFilesExclude} = {
'/proc' => ['/*']
};

#3
$Conf{BackupFilesExclude} = {
'/proc' => ['./*']
}

#4
$Conf{BackupFilesExclude} = {
'/proc/' => ['*']
};

#4
$Conf{BackupFilesExclude} = {
'/proc/' => ['']
};

Thanks!
Vlad
Mark Maciolek
2009-06-26 15:09:37 UTC
Permalink
hi,

Should look more like this:

$Conf{BackupFilesExclude} = {
'*' => [
'/tmp',
'/proc'
]
};
Post by Vladislav Tchernev
Hi All,
I am new to backuppc and was trying to figure out how to exclude dir/files
from a backup. I have played around with the GUI, setting
Xfer->BackupFilesExclude and Xfer->RsyncArgs (--exclude="..."), as well as
directly editing the conf files (the global and the host specific ones) but
without success. What I have tried to do is to exclude /proc but it seems I
can't manage to get rid of it since the error log keeps complining about it.
Bellow are some settings (I ended setting thouse directly in the config.pl) I
have tried.
FYI: Am using backuppc-3.1.0-3 on Ubuntu 8.10
Thanks for your helps!
Vlad
#1
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude="/proc"'
#2
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude', '/proc'
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['/*']
};
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['./*']
}
#4
$Conf{BackupFilesExclude} = {
'/proc/' => ['*']
};
#4
$Conf{BackupFilesExclude} = {
'/proc/' => ['']
};
Thanks!
Vlad
------------------------------------------------------------------------------
_______________________________________________
BackupPC-users mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
--
Mark Maciolek
Network Administrator
Morse Hall 339
862-3050
***@sr.unh.edu
https://www.sr.unh.edu
Adam Goryachev
2009-06-26 15:34:41 UTC
Permalink
Post by Vladislav Tchernev
Hi All,
I am new to backuppc and was trying to figure out how to exclude dir/files
from a backup. I have played around with the GUI, setting
Xfer->BackupFilesExclude and Xfer->RsyncArgs (--exclude="..."), as well as
directly editing the conf files (the global and the host specific ones) but
without success. What I have tried to do is to exclude /proc but it seems I
can't manage to get rid of it since the error log keeps complining about it.
Bellow are some settings (I ended setting thouse directly in the config.pl) I
have tried.
FYI: Am using backuppc-3.1.0-3 on Ubuntu 8.10
Thanks for your helps!
Vlad
#1
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude="/proc"'
Check the man page, but I use the flag like --one-file-system so that
it won't backup any mounted dir...
Post by Vladislav Tchernev
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['/*']
};
Try:

$Conf{BackupFilesExclude} = {
'*' => ['/proc']
};

The syntax says where I put the * you should specify the sharename, or
* to match all.
Where I put /proc is a list of path names to exclude.


Hope that helps...

Regards,
Adam
Les Mikesell
2009-06-26 17:32:58 UTC
Permalink
Post by Vladislav Tchernev
Post by Vladislav Tchernev
Hi All,
I am new to backuppc and was trying to figure out how to exclude dir/files
from a backup. I have played around with the GUI, setting
Xfer->BackupFilesExclude and Xfer->RsyncArgs (--exclude="..."), as
well as
Post by Vladislav Tchernev
directly editing the conf files (the global and the host specific ones)
but
Post by Vladislav Tchernev
without success. What I have tried to do is to exclude /proc but it
seems I
Post by Vladislav Tchernev
can't manage to get rid of it since the error log keeps complining
about it.
Post by Vladislav Tchernev
Bellow are some settings (I ended setting thouse directly in the
config.pl) I
Post by Vladislav Tchernev
have tried.
FYI: Am using backuppc-3.1.0-3 on Ubuntu 8.10
Thanks for your helps!
Vlad
#1
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude="/proc"'
Check the man page, but I use the flag like --one-file-system so that
it won't backup any mounted dir...
Post by Vladislav Tchernev
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['/*']
};
$Conf{BackupFilesExclude} = {
'*' => ['/proc']
};
The syntax says where I put the * you should specify the sharename, or
* to match all.
Where I put /proc is a list of path names to exclude.
Or for a more drastic approach, add --one-file-system to the RsyncArgs
list, which will exclude all mount points. I do that because I
frequently have DVDs or NFS mounts in random places that I don't want to
have backed up. But, then you must be very careful to add share
entries for all of the mounted file systems that you do want, and
remember that if you add more later.
--
Les Mikesell
***@gmail.com
Holger Parplies
2009-06-26 15:49:03 UTC
Permalink
Hi,
[...] What I have tried to do is to exclude /proc but it seems I
can't manage to get rid of it since the error log keeps complining about it.
Bellow are some settings (I ended setting thouse directly in the config.pl) I
have tried.
[...]
#1
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude="/proc"'
#2
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude', '/proc'
I'm not sure why those shouldn't work (presuming you are using XferMethod
rsync or rsyncd, that is!), but it's not the intended way.
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['/*']
};
Try

$Conf {BackupFilesExclude} = {
'/' => [ '/proc' ],
};

(presuming your ShareName really is '/', which is probably the case but may
not be if you are using rsyncd or are trying to exclude a proc filesystem
mounted in a chroot environment, for example). If you need more detailed
information, please tell us which XferMethod and which ShareName(s) you are
using. Have you perhaps got proc mounted more than once?

Regards,
Holger
Vladislav Tchernev
2009-06-26 17:46:35 UTC
Permalink
Thank you guys for your feedback. FYI the "XferMethod" I am using is rsync and
the suggested config listed bellow is working. Apparently, one have to
specify a share(s) in "RsyncShareName" and use it in "BackupFilesExclude" to
specify what exactly to be excluded under that share.

$Conf{BackupFilesExclude} = {
'*' => [
'/proc',
'/sys'
]
};


Best regrads
Vlad
Post by Vladislav Tchernev
Hi All,
I am new to backuppc and was trying to figure out how to exclude dir/files
from a backup. I have played around with the GUI, setting
Xfer->BackupFilesExclude and Xfer->RsyncArgs (--exclude="..."), as well
as directly editing the conf files (the global and the host specific ones)
but without success. What I have tried to do is to exclude /proc but it
seems I can't manage to get rid of it since the error log keeps complining
about it. Bellow are some settings (I ended setting thouse directly in the
config.pl) I have tried.
FYI: Am using backuppc-3.1.0-3 on Ubuntu 8.10
Thanks for your helps!
Vlad
#1
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude="/proc"'
#2
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude', '/proc'
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['/*']
};
#3
$Conf{BackupFilesExclude} = {
'/proc' => ['./*']
}
#4
$Conf{BackupFilesExclude} = {
'/proc/' => ['*']
};
#4
$Conf{BackupFilesExclude} = {
'/proc/' => ['']
};
Thanks!
Vlad
---------------------------------------------------------------------------
--- _______________________________________________
BackupPC-users mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
--
Vladislav Tchernev
Senior System Administrator
Broadsign International
Phone: (514)399-1184
Fax: (514)399-1187
Loading...