SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
mp3 files excluded
Author Message
Post mp3 files excluded 
Hi Craig,

Is it possible to either exclude mp3 files altogether or just to (at least) exclude them from the compression algorithim. Since they are large and already compressed, it would chew up a lot of cpu cycles for nothing. Preferably, I would like to exclude them from the backup.

Then I would let my users know that they are not backed up and maybe give them a single 60GB IDE drive on one of the servers to store them, themselves.

Thanks a lot for all your hard work. I am just finishing up setting up a backuppc for one of my customers.

Leon

Post mp3 files excluded 
Leon Letto wrote:
Hi Craig,

Is it possible to either exclude mp3 files altogether or just to (at
least) exclude them from the compression algorithim. Since they are
large and already compressed, it would chew up a lot of cpu cycles for
nothing. Preferably, I would like to exclude them from the backup.

Then I would let my users know that they are not backed up and maybe
give them a single 60GB IDE drive on one of the servers to store them,
themselves.

Thanks a lot for all your hard work. I am just finishing up setting up
a backuppc for one of my customers.

Leon

Try
$conf{BackupFilesExclude} = '*.mp3';



-------------------------------------------------------
Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf <<<

_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users

Post mp3 files excluded 
Is it possible to either exclude mp3 files altogether or just to (at
least) exclude them from the compression algorithim. Since they are
large and already compressed, it would chew up a lot of cpu cycles for
nothing. Preferably, I would like to exclude them from the backup.

Then I would let my users know that they are not backed up and maybe
give them a single 60GB IDE drive on one of the servers to store them,
themselves.

Thanks a lot for all your hard work. I am just finishing up setting up
a backuppc for one of my customers.

Leon

Try
$conf{BackupFilesExclude} = '*.mp3';

This will work with tar, but not smbclient. Unfortunately smbclient
also needs the "r" option to -T to make wildcards in the exclude file
list work. That's a one-character change to lib/BackupPC/Xfer/Smb.pm,
but you can't do it from the configuration file. (Sometime I should
move the entire smbclient command to the conf file, like it works
with tar, so you can make tweaks like this.)

Another question. Can I say
$conf{BackupFilesExclude} = '~Temporary Internet Files\*.*';
Or something like that, to exclude a pathname. This is because there is
always a different username in front of this folder name. eg. c:\Documents
and Settings\leon\Local Settings\Temporary Internet Files .

If you added the "r" option to smbclient's -T, this should work:

$Conf{BackupFilesExclude} = [
'*/Temporary Internet Files/*',
'*.MP3',
'*.mp3'
];

I would start to question the value of this kind of tweaking. Just
require all your users to listen to the same kind of music Smile.

There is a warning in the smbclient man page that says wildcards done
via regex can be slow. If smbclient is compiled without regex support
(I'm not sure what the default is) then "*" and "?" are still meant to
work ok.

Also, smbclient can't exclude files from a specific list (ie: you can't
include and exclude at the same time). Tar can.

Perhaps I should add "-r" as the default to lib/BackupPC/Xfer/Smb.pm?

Craig


-------------------------------------------------------
Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf <<<

_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users

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