SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Exclusion not working with rsync
Author Message
Post Exclusion not working with rsync 
Hi,

I'm backing up my local machine using rsync; see configuration below.
Despite the exclusion, I still get /home/steve/Packages in my backup.
I tried also '/home/steve/Packages/*' with the same result. What's
the magic?


#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'rsync';

$Conf{RsyncShareName} = [
'/etc',
'/boot',
'/home',
'/var/mail',
'/var/www',
'/sound+vision'
];

$Conf{BackupFilesExclude} = {
'/home' => [
'/home/steve/Packages'
]
};


Thanks,
-Steve

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning < at > Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Exclusion not working with rsync 
On 10/26/2011 8:49 PM, Steve M. Robbins wrote:
Hi,

I'm backing up my local machine using rsync; see configuration below.
Despite the exclusion, I still get /home/steve/Packages in my backup.
I tried also '/home/steve/Packages/*' with the same result. What's
the magic?


#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'rsync';

$Conf{RsyncShareName} = [
'/etc',
'/boot',
'/home',
'/var/mail',
'/var/www',
'/sound+vision'
];

$Conf{BackupFilesExclude} = {
'/home' => [
'/home/steve/Packages'
]
};


Thanks,
-Steve


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning < at > Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev


_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Steve,

You need to change the key /home should be *

$Conf{BackupFilesExclude} = {
'*' => ['
'/home/steve/Packages
]
};


--
Mark Maciolek <mailto:Mark.Maciolek < at > unh.edu>
Network Administrator
Research Computing & Instrumentation
<http://www.unh.edu/research/support-units/research-computing-instrumentation>

(603)862-3050

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning < at > Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Exclusion not working with rsync 
On 10/26 07:49 , Steve M. Robbins wrote:
I'm backing up my local machine using rsync; see configuration below.

This isn't really a proper answer to your question; but have you considered
using tar for your backup of localhost? I've found that tar is faster for
some types of transfers (where bandwidth isn't at a premium). I haven't
tested this extensively.

Here's what I use for a localhost.pl:
#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'tar';

# let it back itself up anytime it wants to.
$Conf{BlackoutPeriods} = [];

$Conf{TarShareName} = ['/'];

$Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc',
'/var/lib/vmware', '/var/log', '/tmp', '/var/tmp', '/mnt', '/media'];

$Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f
- -C $shareName --totals';

# remove extra shell escapes ($fileList+ etc.) that are
# needed for remote backups but may break local ones
$Conf{TarFullArgs} = '$fileList';
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';

# turning off compression on these files, so they can be recovered without
# backuppc.
# wouldn't make sense to need your backup server,
# in order to recover your backup server, now would it?
$Conf{CompressLevel} = 0;



Back to the original point of your question; your configuration does look
sane, tho I don't do any backups quite that way so I don't have direct
experience with multiple rsync shares on the same host. (I use ssh keys
customized to restrict the backups to particular trees of files, so I need a
new backup profile for each tree on a remote host).

--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning < at > Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Exclusion not working with rsync 
On Wed, Oct 26, 2011 at 07:49:48PM -0500, Steve M. Robbins wrote:

I'm backing up my local machine using rsync; see configuration below.
Despite the exclusion, I still get /home/steve/Packages in my backup.
I tried also '/home/steve/Packages/*' with the same result. What's
the magic?

Well, experimentation indicates that I need to strip off
the prefix; i.e. change from

$Conf{BackupFilesExclude} = {
'/home' => [
'/home/steve/Packages'
]
};

to

$Conf{BackupFilesExclude} = {
'/home' => [
'steve/Packages'
]
};


Regards,
-Steve

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning < at > Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB